OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "extension", | 3 "namespace": "extension", |
4 "nocompile": true, | 4 "nocompile": true, |
5 "dependencies": [ "tabs" ], | 5 "dependencies": [ "tabs" ], |
6 "types": [ | 6 "types": [ |
7 { | 7 { |
8 "id": "MessageSender", | 8 "id": "MessageSender", |
9 "type": "object", | 9 "type": "object", |
10 "description": "An object containing information about the script contex
t that sent a message or request.", | 10 "description": "An object containing information about the script contex
t that sent a message or request.", |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 "type": "integer", | 141 "type": "integer", |
142 "optional": true, | 142 "optional": true, |
143 "description": "The window to restrict the search to. If omitted
, returns all views." | 143 "description": "The window to restrict the search to. If omitted
, returns all views." |
144 } | 144 } |
145 } | 145 } |
146 } | 146 } |
147 ], | 147 ], |
148 "returns": { | 148 "returns": { |
149 "type": "array", | 149 "type": "array", |
150 "description": "Array of global objects", | 150 "description": "Array of global objects", |
151 "items": { "type": "object", "isInstanceOf": "Window", "additionalProp
erties": { "type": "any" } } | 151 "items": { "type": "object", "isInstanceOf": "global", "additionalProp
erties": { "type": "any" } } |
152 } | 152 } |
153 }, | 153 }, |
154 { | 154 { |
155 "name": "getBackgroundPage", | 155 "name": "getBackgroundPage", |
156 "type": "function", | 156 "type": "function", |
157 "description": "Returns the JavaScript 'window' object for the backgroun
d page running inside the current extension. Returns null if the extension has n
o background page.", | 157 "description": "Returns the JavaScript 'window' object for the backgroun
d page running inside the current extension. Returns null if the extension has n
o background page.", |
158 "parameters": [], | 158 "parameters": [], |
159 "returns": { | 159 "returns": { |
160 "type": "object", "isInstanceOf": "Window", "additionalProperties": {
"type": "any" } | 160 "type": "object", "isInstanceOf": "global", "additionalProperties": {
"type": "any" } |
161 } | 161 } |
162 }, | 162 }, |
163 { | 163 { |
164 "name": "getExtensionTabs", | 164 "name": "getExtensionTabs", |
165 "nodoc": true, | 165 "nodoc": true, |
166 "type": "function", | 166 "type": "function", |
167 "maximumManifestVersion": 1, | 167 "maximumManifestVersion": 1, |
168 "description": "Deprecated. Please use getViews({type: 'TAB'}). Returns
an array of the JavaScript 'window' objects for each of the tabs running inside
the current extension. If windowId is specified, returns only the 'window' objec
ts of tabs attached to the specified window.", | 168 "description": "Deprecated. Please use getViews({type: 'TAB'}). Returns
an array of the JavaScript 'window' objects for each of the tabs running inside
the current extension. If windowId is specified, returns only the 'window' objec
ts of tabs attached to the specified window.", |
169 "parameters": [ | 169 "parameters": [ |
170 {"type": "integer", "name": "windowId", "optional": true} | 170 {"type": "integer", "name": "windowId", "optional": true} |
171 ], | 171 ], |
172 "returns": { | 172 "returns": { |
173 "type": "array", | 173 "type": "array", |
174 "description": "Array of global window objects", | 174 "description": "Array of global window objects", |
175 "items": { "type": "object", "isInstanceOf": "Window", "additionalProp
erties": { "type": "any" } } | 175 "items": { "type": "object", "isInstanceOf": "global", "additionalProp
erties": { "type": "any" } } |
176 } | 176 } |
177 }, | 177 }, |
178 { | 178 { |
179 "name": "isAllowedIncognitoAccess", | 179 "name": "isAllowedIncognitoAccess", |
180 "type": "function", | 180 "type": "function", |
181 "description": "Retrieves the state of the extension's access to Incogni
to-mode (as determined by the user-controlled 'Allowed in Incognito' checkbox.", | 181 "description": "Retrieves the state of the extension's access to Incogni
to-mode (as determined by the user-controlled 'Allowed in Incognito' checkbox.", |
182 "min_version": "12.0.706.0", | 182 "min_version": "12.0.706.0", |
183 "parameters": [ | 183 "parameters": [ |
184 { | 184 { |
185 "type": "function", | 185 "type": "function", |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 "description": "Fired when a request is sent from another extension.", | 261 "description": "Fired when a request is sent from another extension.", |
262 "parameters": [ | 262 "parameters": [ |
263 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, | 263 {"name": "request", "type": "any", "description": "The request sent by
the calling script."}, |
264 {"name": "sender", "$ref": "MessageSender" }, | 264 {"name": "sender", "$ref": "MessageSender" }, |
265 {"name": "sendResponse", "type": "function", "description": "Function
to call when you have a response. The argument should be any JSON-ifiable object
, or undefined if there is no response." } | 265 {"name": "sendResponse", "type": "function", "description": "Function
to call when you have a response. The argument should be any JSON-ifiable object
, or undefined if there is no response." } |
266 ] | 266 ] |
267 } | 267 } |
268 ] | 268 ] |
269 } | 269 } |
270 ] | 270 ] |
OLD | NEW |