diff options
author | mtytel@chromium.org <mtytel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-19 08:51:17 +0000 |
---|---|---|
committer | mtytel@chromium.org <mtytel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-19 08:51:17 +0000 |
commit | 008ff7fb3cc604f96c6b8f0b5f97a883ac611ab7 (patch) | |
tree | 8d7f2f37910a0be933548f830b253a5ce7206b9f /chrome/common | |
parent | 18f9bc90261f6024bcabce1d1f6cbb897572e27d (diff) | |
download | chromium_src-008ff7fb3cc604f96c6b8f0b5f97a883ac611ab7.zip chromium_src-008ff7fb3cc604f96c6b8f0b5f97a883ac611ab7.tar.gz chromium_src-008ff7fb3cc604f96c6b8f0b5f97a883ac611ab7.tar.bz2 |
Added populate parameter to chrome.windows.get, chrome.windows.getCurrent,
chrome.windows.getLastFocused
BUG=53516
TEST=Run chrome.windows.get(id, {"populate":true}, fun) from an extension
Review URL: http://codereview.chromium.org/8969011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/api/windows.json | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/windows.json b/chrome/common/extensions/api/windows.json index cb099c3..cb9f5aa 100644 --- a/chrome/common/extensions/api/windows.json +++ b/chrome/common/extensions/api/windows.json @@ -42,6 +42,15 @@ "parameters": [ {"type": "integer", "name": "windowId", "minimum": 0}, { + "type": "object", + "name": "getInfo", + "optional": true, + "description": "", + "properties": { + "populate": {"type": "boolean", "optional": true, "description": "If true, the window object will have a <var>tabs</var> property that contains a list of the $ref:Tab objects" } + } + }, + { "type": "function", "name": "callback", "parameters": [ @@ -58,6 +67,15 @@ "description": "Gets the <a href='#current-window'>current window</a>.", "parameters": [ { + "type": "object", + "name": "getInfo", + "optional": true, + "description": "", + "properties": { + "populate": {"type": "boolean", "optional": true, "description": "If true, the window object will have a <var>tabs</var> property that contains a list of the $ref:Tab objects" } + } + }, + { "type": "function", "name": "callback", "parameters": [ @@ -74,6 +92,15 @@ "description": "Gets the window that was most recently focused — typically the window 'on top'.", "parameters": [ { + "type": "object", + "name": "getInfo", + "optional": true, + "description": "", + "properties": { + "populate": {"type": "boolean", "optional": true, "description": "If true, the window object will have a <var>tabs</var> property that contains a list of the $ref:Tab objects" } + } + }, + { "type": "function", "name": "callback", "parameters": [ |