summaryrefslogtreecommitdiffstats
path: root/browser/extensions/report-site-issue/experimentalAPIs/pageActionExtras.json
blob: df848e439a63da89034ce280eb4434dbba58d90f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[
  {
    "namespace": "pageActionExtras",
    "description": "experimental pageAction API extensions",
    "functions": [
      {
        "name": "setDefaultTitle",
        "type": "function",
        "async": true,
        "description": "Set the page action's title for all tabs",
        "parameters": [{
          "name": "title",
          "type": "string",
          "description": "title"
        }]
      },
      {
        "name": "setLabelForHistogram",
        "type": "function",
        "async": true,
        "description": "Set the page action's label for telemetry histograms",
        "parameters": [{
          "name": "label",
          "type": "string",
          "description": "label for the histogram"
        }]
      },
      {
        "name": "setTooltipText",
        "type": "function",
        "async": true,
        "description": "Set the page action's tooltip text",
        "parameters": [{
          "name": "text",
          "type": "string",
          "description": "text"
        }]
      }
    ]
  }
]