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", |
+ "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": [ |