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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 "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 focused window.
This value is ignored for panels."}, | 188 "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 focused window.
This value is ignored for panels."}, |
189 "top": {"type": "integer", "optional": true, "description": "The n
umber of pixels to position the new window from the top edge of the screen. If n
ot specified, the new window is offset naturally from the last focused window. T
his value is ignored for panels."}, | 189 "top": {"type": "integer", "optional": true, "description": "The n
umber of pixels to position the new window from the top edge of the screen. If n
ot specified, the new window is offset naturally from the last focused window. T
his value is ignored for panels."}, |
190 "width": {"type": "integer", "minimum": 0, "optional": true, "desc
ription": "The width in pixels of the new window, including the frame. If not sp
ecified defaults to a natural width."}, | 190 "width": {"type": "integer", "minimum": 0, "optional": true, "desc
ription": "The width in pixels of the new window, including the frame. If not sp
ecified defaults to a natural width."}, |
191 "height": {"type": "integer", "minimum": 0, "optional": true, "des
cription": "The height in pixels of the new window, including the frame. If not
specified defaults to a natural height."}, | 191 "height": {"type": "integer", "minimum": 0, "optional": true, "des
cription": "The height in pixels of the new window, including the frame. If not
specified defaults to a natural height."}, |
192 "focused": {"type": "boolean", "optional": true, "description": "I
f true, opens an active window. If false, opens an inactive window."}, | 192 "focused": {"type": "boolean", "optional": true, "description": "I
f true, opens an active window. If false, opens an inactive window."}, |
193 "incognito": {"type": "boolean", "optional": true, "description":
"Whether the new window should be an incognito window."}, | 193 "incognito": {"type": "boolean", "optional": true, "description":
"Whether the new window should be an incognito window."}, |
194 "type": { | 194 "type": { |
195 "$ref": "CreateType", | 195 "$ref": "CreateType", |
196 "optional": true, | 196 "optional": true, |
197 "description": "Specifies what type of browser window to create.
The 'panel' and 'detached_panel' types create a popup unless the '--enable-pane
ls' flag is set." | 197 "description": "Specifies what type of browser window to create.
The 'panel' and 'detached_panel' types create a popup unless the '--enable-pane
ls' flag is set." |
| 198 }, |
| 199 "state": { |
| 200 "$ref": "WindowState", |
| 201 "optional": true, |
| 202 "description": "The initial state of the window. The 'minimized'
, 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'wi
dth' or 'height'." |
198 } | 203 } |
199 }, | 204 }, |
200 "optional": true | 205 "optional": true |
201 }, | 206 }, |
202 { | 207 { |
203 "type": "function", | 208 "type": "function", |
204 "name": "callback", | 209 "name": "callback", |
205 "optional": true, | 210 "optional": true, |
206 "parameters": [ | 211 "parameters": [ |
207 { | 212 { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 "name": "onFocusChanged", | 287 "name": "onFocusChanged", |
283 "type": "function", | 288 "type": "function", |
284 "description": "Fired when the currently focused window changes. Will be
chrome.windows.WINDOW_ID_NONE if all chrome windows have lost focus. Note: On s
ome Linux window managers, WINDOW_ID_NONE will always be sent immediately preced
ing a switch from one chrome window to another.", | 289 "description": "Fired when the currently focused window changes. Will be
chrome.windows.WINDOW_ID_NONE if all chrome windows have lost focus. Note: On s
ome Linux window managers, WINDOW_ID_NONE will always be sent immediately preced
ing a switch from one chrome window to another.", |
285 "parameters": [ | 290 "parameters": [ |
286 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} | 291 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} |
287 ] | 292 ] |
288 } | 293 } |
289 ] | 294 ] |
290 } | 295 } |
291 ] | 296 ] |
OLD | NEW |