summaryrefslogtreecommitdiffstats
path: root/content/api/BootstrapLoader/schema.json
blob: fe48fb6def39bffa81dbd087aa64262fdbc040ee (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[
  {
    "namespace": "BootstrapLoader",
    "functions": [
      {
        "name": "registerOptionsPage",
        "type": "function",
        "parameters": [
          {
            "name": "aPath",
            "type": "string",
            "description": "Path to the options page, which should be made accessible in the (legacy) Add-On Options menu."
          }
        ]
      },
      {
        "name": "openOptionsDialog",
        "type": "function",
        "parameters": [
          {
            "name": "windowId",
            "type": "integer",
            "description": "Id of the window the dialog should be opened from."
          }
        ]
      },
      {
        "name": "registerChromeUrl",
        "type": "function",
        "description": "Register folders which should be available as chrome:// urls (as defined in the legacy chrome.manifest)",
        "async": true,
        "parameters": [
          {
            "name": "chromeData",
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "Array of ChromeData Arrays."
          }
        ]
      },
      {
        "name": "registerBootstrapScript",
        "type": "function",
        "description": "Register a bootstrap.js style script",
        "async": true,
        "parameters": [
          {
            "name": "aPath",
            "type": "string",
            "description": "Either the chrome:// path to the script or its relative location from the root of the extension,"
          }
        ]
      }
    ]
  }
]