Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7373)

Unified Diff: chrome/common/extensions/api/extension_api.json

Issue 306044: Refactor implementation of BrowserActions, and add support for (Closed)
Patch Set: Make it work on linux too Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index e629088a7758ccf104c4f7dc48cab67ad430cec5..1604d3b807e227bc442ca0073dc0964d9abab304 100755
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -869,6 +869,11 @@
"description": "Pixel data for an image. Must be an ImageData object (for example, from a canvas element).",
"optional": true
},
+ "path": {
+ "type": "string",
+ "description": "Relative path to an image in the extension to show in the browser action.",
+ "optional": true
+ },
"iconIndex": {
"type": "integer",
"minimum": 0,
@@ -975,6 +980,11 @@
"title": {
"type": "string",
"description": "The string the browser action should display when moused over."
+ },
+ "tabId": {
+ "type": "integer",
+ "optional": true,
+ "description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
}
}
}
@@ -994,16 +1004,15 @@
"description": "Pixel data for an image. Must be an ImageData object (for example, from a <code>canvas</code> element).",
"optional": true
},
- "iconIndex": {
- "type": "integer",
- "minimum": 0,
- "description": "<b>Deprecated.</b> The zero-based index into the <b>icons</b> vector specified in the manifest.",
- "optional": true
- },
"path": {
"type": "string",
"description": "Relative path to an image in the extension to show in the browser action.",
"optional": true
+ },
+ "tabId": {
+ "type": "integer",
+ "optional": true,
+ "description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
}
}
}
@@ -1021,6 +1030,11 @@
"text": {
"type": "string",
"description": "Any number of characters can be passed, but only about four can fit in the space."
+ },
+ "tabId": {
+ "type": "integer",
+ "optional": true,
+ "description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
}
}
}
@@ -1045,6 +1059,11 @@
},
"minItems": 4,
"maxItems": 4
+ },
+ "tabId": {
+ "type": "integer",
+ "optional": true,
+ "description": "Limits the change to when a particular tab is selected. Automatically resets when the tab is closed."
}
}
}
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698