-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
107 lines (106 loc) · 2.88 KB
/
schema.json
File metadata and controls
107 lines (106 loc) · 2.88 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[
{
"namespace": "manifest",
"types": [
{
"$extend": "Permission",
"choices": [{
"type": "string",
"enum": [ "toolbar" ]
}]
},
{
"$extend": "WebExtensionManifest",
"properties": {
"toolbar_action": {
"type": "object",
"additionalProperties": { "$ref": "UnrecognizedProperty" },
"properties": {
"default_title": {
"type": "string",
"optional": true,
"preprocess": "localize"
},
"default_panel": {
"type": "string",
"format": "relativeUrl",
"optional": true,
"preprocess": "localize"
}
},
"optional": true
}
}
}
]
},
{
"namespace": "toolbarAction",
"description": "Use toolbar actions to add a toolbar to Firefox.",
"permissions": ["toolbar"],
"functions": [
{
"name": "setPanel",
"type": "function",
"description": "Sets the html document to be opened in the toolbar.",
"async": "callback",
"parameters": [
{
"name": "details",
"type": "object",
"properties": {
"tabId": {
"type": "integer",
"optional": true,
"minimum": 0,
"description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
},
"panel": {
"type": "string",
"description": "The html file to show in a toolbar."
}
}
},
{
"type": "function",
"name": "callback",
"optional": true,
"parameters": []
}
]
},
{
"name": "getPanel",
"type": "function",
"description": "Gets the html document set as the panel for this toolbar action.",
"async": "callback",
"parameters": [
{
"name": "details",
"type": "object",
"properties": {
"tabId": {
"type": "integer",
"optional": true,
"description": "Specify the tab to get the toolbar from. If no tab is specified, the non-tab-specific toolbar is returned."
}
}
},
{
"type": "function",
"name": "callback",
"parameters": [
{
"name": "result",
"type": "string"
}
]
}
]
}
]
}
]