From bf1be4e7669c23dc4273ee538d5854415c48a0e0 Mon Sep 17 00:00:00 2001 From: "mek@chromium.org" Date: Wed, 7 Nov 2012 20:32:27 +0000 Subject: 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 --- chrome/common/extensions/api/runtime.json | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chrome/common') 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": [ -- cgit v1.1