diff options
author | mek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 20:32:27 +0000 |
---|---|---|
committer | mek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-07 20:32:27 +0000 |
commit | bf1be4e7669c23dc4273ee538d5854415c48a0e0 (patch) | |
tree | c0d0910172c0a3a6a2701ba11964c65a414ca100 /chrome/common | |
parent | 3a05b97f908b462dc51068ca422f0442adfe2714 (diff) | |
download | chromium_src-bf1be4e7669c23dc4273ee538d5854415c48a0e0.zip chromium_src-bf1be4e7669c23dc4273ee538d5854415c48a0e0.tar.gz chromium_src-bf1be4e7669c23dc4273ee538d5854415c48a0e0.tar.bz2 |
Add chrome.runtime.reload method.
Together with the commands API this makes it possible for an app/extension to
define their own reload shortcut.
The other main use for this API will be to force a reload of an app when an
update is available (at the moment updates get installed immediately, but in the
future this will change to only install updates when the app is not running).
BUG=148745
Review URL: https://chromiumcodereview.appspot.com/11288003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166510 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/api/runtime.json | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/runtime.json b/chrome/common/extensions/api/runtime.json index 0263b2d..36c024bd 100644 --- a/chrome/common/extensions/api/runtime.json +++ b/chrome/common/extensions/api/runtime.json @@ -79,6 +79,13 @@ "type": "string", "description": "The fully-qualified URL to the resource." } + }, + { + "name": "reload", + "description": "Reloads the app or extension.", + "type": "function", + "unprivileged": true, + "parameters": [] } ], "events": [ |