diff options
author | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 20:05:54 +0000 |
---|---|---|
committer | jstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 20:05:54 +0000 |
commit | ce258c92a8cb8183105d05a6f8d8b8b48614eabf (patch) | |
tree | e346c6b52506877d2ee61114df9d4173b771c0d8 /chrome/common | |
parent | 18b147138e014805955bfcb5dc93e2191d6e2447 (diff) | |
download | chromium_src-ce258c92a8cb8183105d05a6f8d8b8b48614eabf.zip chromium_src-ce258c92a8cb8183105d05a6f8d8b8b48614eabf.tar.gz chromium_src-ce258c92a8cb8183105d05a6f8d8b8b48614eabf.tar.bz2 |
Tab array support for chrome.windows.create
With this change, a user can pass in an individual url or a list of urls to be opened with the new window.
BUG=53517
TEST=ExtensionApiTest
Review URL: http://codereview.chromium.org/3772004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62633 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/api/extension_api.json | 10 | ||||
-rw-r--r-- | chrome/common/extensions/docs/windows.html | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index 34ab416..216b652 100644 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -687,7 +687,15 @@ "type": "object", "name": "createData", "properties": { - "url": {"type": "string", "optional": true, "description": "The URL to navigate the first tab to. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page."}, + "url": { + "type": "string", + "description": "A URL or list of URLs to open as tabs in the window. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page.", + "optional": true, + "choices": [ + {"type": "string"}, + {"type": "array", "items": {"type": "string"}} + ] + }, "left": {"type": "integer", "optional": true, "description": "The number of pixels to position the new window from the left edge of the screen. If not specified, the new window is offset naturally from the last focusd window."}, "top": {"type": "integer", "optional": true, "description": "The number of pixels to position the new window from the top edge of the screen. If not specified, the new window is offset naturally from the last focusd window."}, "width": {"type": "integer", "minimum": 0, "optional": true, "description": "The width in pixels of the new window. If not specified defaults to a natural width."}, diff --git a/chrome/common/extensions/docs/windows.html b/chrome/common/extensions/docs/windows.html index 2da60a3..97518ea 100644 --- a/chrome/common/extensions/docs/windows.html +++ b/chrome/common/extensions/docs/windows.html @@ -561,7 +561,7 @@ For other examples and for help in viewing the source code, see <span style="display: none; "> array of <span><span></span></span> </span> - <span>string</span> + <span>string or array of string</span> <span style="display: none; "></span> </span> </span> @@ -573,7 +573,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The URL to navigate the first tab to. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page.</dd> + <dd>A URL or list of URLs to open as tabs in the window. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page.</dd> <dd style="display: none; "> This parameter was added in version <b><span></span></b>. |