diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 01:54:42 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 01:54:42 +0000 |
commit | 56ee015da5ac5d2e254da2ba517bdd59a554d170 (patch) | |
tree | 5dfac8d3e01068bf823521f1a7db5fde1bfa1b3b /chrome/common | |
parent | 950a038e62987a599643cc7812995cf81a1a7688 (diff) | |
download | chromium_src-56ee015da5ac5d2e254da2ba517bdd59a554d170.zip chromium_src-56ee015da5ac5d2e254da2ba517bdd59a554d170.tar.gz chromium_src-56ee015da5ac5d2e254da2ba517bdd59a554d170.tar.bz2 |
Send WINDOW_ID_NONE in chrome.windows.onFocusChanged when all windows loose focus.
Note that this patch includes support for Views (Windows/chromeos) and GTK (Linux). I was going to do mac as well, but decided my objective-c skillz were too rusty.
BUG=32932
TEST=none
Review URL: http://codereview.chromium.org/2778001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49884 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/api/extension_api.json | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index c6094b6..46b5a713 100644 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -506,6 +506,13 @@ } } ], + "properties": { + "WINDOW_ID_NONE": { + "type": "integer", + "value": "-1", + "description": "The windowId value that represents the absence of a chrome browser window." + } + }, "functions": [ { "name": "get", @@ -680,7 +687,7 @@ { "name": "onFocusChanged", "type": "function", - "description": "Fired when the currently focused window changes.", + "description": "Fired when the currently focused window changes. Will be chrome.windows.WINDOW_ID_NONE if all chrome windows have lost focus. Note: On some Linux window managers, WINDOW_ID_NONE will always be sent immediately preceding a switch from one chrome window to another.", "parameters": [ {"type": "integer", "name": "windowId", "minimum": 0, "description": "ID of the newly focused window."} ] |