Chromium Code Reviews| Index: chrome/common/extensions/api/browser_action.json |
| diff --git a/chrome/common/extensions/api/browser_action.json b/chrome/common/extensions/api/browser_action.json |
| index 68ae6377c8807191f8ed1d89cc0a04d0db5e65d8..379bacb15f80e750aa7e8baa2b270334151c94cb 100644 |
| --- a/chrome/common/extensions/api/browser_action.json |
| +++ b/chrome/common/extensions/api/browser_action.json |
| @@ -259,6 +259,34 @@ |
| ] |
| } |
| ] |
| + }, |
| + { |
| + "name": "enable", |
| + "type": "function", |
| + "description": "Enables the browser action for a tab. By default, browser actions are enabled.", |
| + "parameters": [ |
| + { |
| + "type": "integer", |
| + "optional": true, |
| + "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
|
| + "minimum": 0, |
| + "description": "The id of the tab for which you want to modify the browser action." |
| + } |
| + ] |
| + }, |
| + { |
| + "name": "disable", |
| + "type": "function", |
| + "description": "Disables the browser action for a tab.", |
| + "parameters": [ |
| + { |
| + "type": "integer", |
| + "optional": true, |
| + "name": "tabId", |
| + "minimum": 0, |
| + "description": "The id of the tab for which you want to modify the browser action." |
| + } |
| + ] |
| } |
| ], |
| "events": [ |