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 { | |
269 "type": "integer", | |
270 "optional": true, | |
271 "name": "tabId", | |
not at google - send to devlin
2012/07/23 11:07:48
Sorry I just noticed this (and I reviewed the chan
Yoyo Zhou
2012/07/23 14:25:16
I believe it's for consistency with pageAction.sho
not at google - send to devlin
2012/07/23 14:27:13
Right you are.
Jeffrey Yasskin
2012/07/23 17:00:02
If it's really _just_ show/hide that are different
| |
272 "minimum": 0, | |
273 "description": "The id of the tab for which you want to modify the b rowser action." | |
274 } | |
275 ] | |
276 }, | |
277 { | |
278 "name": "disable", | |
279 "type": "function", | |
280 "description": "Disables the browser action for a tab.", | |
281 "parameters": [ | |
282 { | |
283 "type": "integer", | |
284 "optional": true, | |
285 "name": "tabId", | |
286 "minimum": 0, | |
287 "description": "The id of the tab for which you want to modify the b rowser action." | |
288 } | |
289 ] | |
262 } | 290 } |
263 ], | 291 ], |
264 "events": [ | 292 "events": [ |
265 { | 293 { |
266 "name": "onClicked", | 294 "name": "onClicked", |
267 "type": "function", | 295 "type": "function", |
268 "description": "Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup.", | 296 "description": "Fired when a browser action icon is clicked. This event will not fire if the browser action has a popup.", |
269 "parameters": [ | 297 "parameters": [ |
270 { | 298 { |
271 "name": "tab", | 299 "name": "tab", |
272 "$ref": "tabs.Tab" | 300 "$ref": "tabs.Tab" |
273 } | 301 } |
274 ] | 302 ] |
275 } | 303 } |
276 ] | 304 ] |
277 } | 305 } |
278 ] | 306 ] |
OLD | NEW |