| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [ | 5 [ |
| 6 { | 6 { |
| 7 "namespace": "windows", | 7 "namespace": "windows", |
| 8 "description": "Use the <code>chrome.windows</code> API to interact with bro
wser windows. You can use this API to create, modify, and rearrange windows in t
he browser.", | 8 "description": "Use the <code>chrome.windows</code> API to interact with bro
wser windows. You can use this API to create, modify, and rearrange windows in t
he browser.", |
| 9 "compiler_options": { | 9 "compiler_options": { |
| 10 "implemented_in": "chrome/browser/extensions/api/tabs/tabs_api.h" | 10 "implemented_in": "chrome/browser/extensions/api/tabs/tabs_api.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 "incognito": {"type": "boolean", "optional": true, "description":
"Whether the new window should be an incognito window."}, | 217 "incognito": {"type": "boolean", "optional": true, "description":
"Whether the new window should be an incognito window."}, |
| 218 "type": { | 218 "type": { |
| 219 "$ref": "CreateType", | 219 "$ref": "CreateType", |
| 220 "optional": true, | 220 "optional": true, |
| 221 "description": "Specifies what type of browser window to create.
" | 221 "description": "Specifies what type of browser window to create.
" |
| 222 }, | 222 }, |
| 223 "state": { | 223 "state": { |
| 224 "$ref": "WindowState", | 224 "$ref": "WindowState", |
| 225 "optional": true, | 225 "optional": true, |
| 226 "description": "The initial state of the window. The 'minimized'
, 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'wi
dth' or 'height'." | 226 "description": "The initial state of the window. The 'minimized'
, 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'wi
dth' or 'height'." |
| 227 } | 227 }, |
| 228 "setSelfAsOpener": {"type": "boolean", "optional": true, "descript
ion": "Whether the newly opened window will be in the same unit of related brows
ing contexts [1], having its window.opener set to the caller and otherwise behav
ing similarily to window.open. [1] - https://www.w3.org/TR/html51/browsers.html
#unit-of-related-browsing-contexts"} |
| 228 }, | 229 }, |
| 229 "optional": true | 230 "optional": true |
| 230 }, | 231 }, |
| 231 { | 232 { |
| 232 "type": "function", | 233 "type": "function", |
| 233 "name": "callback", | 234 "name": "callback", |
| 234 "optional": true, | 235 "optional": true, |
| 235 "parameters": [ | 236 "parameters": [ |
| 236 { | 237 { |
| 237 "name": "window", "$ref": "Window", "description": "Contains det
ails about the created window.", | 238 "name": "window", "$ref": "Window", "description": "Contains det
ails about the created window.", |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 "description": "Conditions that the window's type being removed must
satisfy. By default it will satisfy <code>['app', 'normal', 'panel', 'popup']</
code>, with <code>'app'</code> and <code>'panel'</code> window types limited to
the extension's own windows." | 336 "description": "Conditions that the window's type being removed must
satisfy. By default it will satisfy <code>['app', 'normal', 'panel', 'popup']</
code>, with <code>'app'</code> and <code>'panel'</code> window types limited to
the extension's own windows." |
| 336 } | 337 } |
| 337 ], | 338 ], |
| 338 "parameters": [ | 339 "parameters": [ |
| 339 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} | 340 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} |
| 340 ] | 341 ] |
| 341 } | 342 } |
| 342 ] | 343 ] |
| 343 } | 344 } |
| 344 ] | 345 ] |
| OLD | NEW |