diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-20 05:16:54 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-20 05:16:54 +0000 |
commit | bf28f5f87c717257ef566e4f7a22d116d088f59e (patch) | |
tree | b6a1cb91e83a23973187116c3aaec3041af27538 /chrome/common | |
parent | dd3e02abd586bcb898a557713b2636e0f4999990 (diff) | |
download | chromium_src-bf28f5f87c717257ef566e4f7a22d116d088f59e.zip chromium_src-bf28f5f87c717257ef566e4f7a22d116d088f59e.tar.gz chromium_src-bf28f5f87c717257ef566e4f7a22d116d088f59e.tar.bz2 |
Implement chrome.browserAction.setIcon({path:...});
BUG=22575
Review URL: http://codereview.chromium.org/269103
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rwxr-xr-x | chrome/common/extensions/api/extension_api.json | 5 | ||||
-rwxr-xr-x | chrome/common/extensions/docs/browserAction.html | 43 |
2 files changed, 47 insertions, 1 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index 53480d98..5d866b0 100755 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -999,6 +999,11 @@ "minimum": 0, "description": "The zero-based index into the |icons| 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 } } } diff --git a/chrome/common/extensions/docs/browserAction.html b/chrome/common/extensions/docs/browserAction.html index c9ca19e..050f127 100755 --- a/chrome/common/extensions/docs/browserAction.html +++ b/chrome/common/extensions/docs/browserAction.html @@ -595,7 +595,7 @@ </dl> </dd> </div> - </div><div jsinstance="*1"> + </div><div jsinstance="1"> <div> <dt> <var>iconIndex</var> @@ -636,6 +636,47 @@ </dl> </dd> </div> + </div><div jsinstance="*2"> + <div> + <dt> + <var>path</var> + <em> + + <!-- TYPE --> + <div style="display:inline"> + ( + <span class="optional">optional</span> + <span id="typeTemplate"> + <span style="display: none; "> + <a> Type</a> + </span> + <span> + <span style="display: none; "> + array of <span><span></span></span> + </span> + <span>string</span> + </span> + </span> + ) + </div> + + </em> + </dt> + <dd class="todo" style="display: none; "> + Undocumented. + </dd> + <dd>Relative path to an image in the extension to show in the browser action.</dd> + + <!-- OBJECT PROPERTIES --> + <dd style="display: none; "> + <dl> + <div> + <div> + </div> + </div> + </dl> + </dd> + </div> </div> </dl> </dd> |