summaryrefslogtreecommitdiffstats
path: root/browser/extensions/screenshots/experiments/screenshots/schema.json
blob: 354af8c722663df746272da6b866aebe0c5a6b19 (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
[
  {
    "namespace": "experiments.screenshots",
    "description": "Firefox Screenshots internal API",
    "functions": [
      {
        "name": "getUpdateChannel",
        "type": "function",
        "description": "Returns the Firefox channel (AppConstants.MOZ_UPDATE_CHANNEL)",
        "parameters": [],
        "async": true
      },
      {
        "name": "isHistoryEnabled",
        "type": "function",
        "description": "Returns the value of the 'places.history.enabled' preference",
        "parameters": [],
        "async": true
      }
    ],
    "events": [
      {
        "name": "onScreenshotCommand",
        "type": "function",
        "description": "Fired when the command event for the Screenshots menuitem is fired.",
        "parameters": [
          {
            "name": "isContextMenuClick",
            "type": "boolean"
          }
        ]
      }
    ]
  }
]