OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "browserAction", | 7 "namespace": "browserAction", |
8 "dependencies": [ "tabs" ], | 8 "dependencies": [ "tabs" ], |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
252 "type": "function", | 252 "type": "function", |
253 "name": "callback", | 253 "name": "callback", |
254 "parameters": [ | 254 "parameters": [ |
255 { | 255 { |
256 "name": "result", | 256 "name": "result", |
257 "$ref": "ColorArray" | 257 "$ref": "ColorArray" |
258 } | 258 } |
259 ] | 259 ] |
260 } | 260 } |
261 ] | 261 ] |
262 }, | |
263 { | |
264 "name": "enable", | |
265 "type": "function", | |
266 "description": "Enables the browser action for a tab. By default, browse r actions are enabled.", | |
267 "parameters": [ | |
268 {"type": "integer", "name": "tabId", "minimum": 0, "description": "The id of the tab for which you want to modify the browser action."} | |
not at google - send to devlin
2012/07/17 13:18:02
should this be optional to disable for all tabs?
| |
269 ] | |
270 }, | |
271 { | |
272 "name": "disable", | |
273 "type": "function", | |
274 "description": "Disables the browser action for a tab.", | |
275 "parameters": [ | |
276 {"type": "integer", "name": "tabId", "minimum": 0, "description": "The id of the tab for which you want to modify the browser action."} | |
not at google - send to devlin
2012/07/17 13:18:02
ditto
| |
277 ] | |
262 } | 278 } |
263 ], | 279 ], |
264 "events": [ | 280 "events": [ |
265 { | 281 { |
266 "name": "onClicked", | 282 "name": "onClicked", |
267 "type": "function", | 283 "type": "function", |
268 "description": "Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup.", | 284 "description": "Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup.", |
269 "parameters": [ | 285 "parameters": [ |
270 { | 286 { |
271 "name": "tab", | 287 "name": "tab", |
272 "$ref": "tabs.Tab" | 288 "$ref": "tabs.Tab" |
273 } | 289 } |
274 ] | 290 ] |
275 } | 291 } |
276 ] | 292 ] |
277 } | 293 } |
278 ] | 294 ] |
OLD | NEW |