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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 "optional": true, | 44 "optional": true, |
45 "description": "The state of this browser window." | 45 "description": "The state of this browser window." |
46 }, | 46 }, |
47 "alwaysOnTop": {"type": "boolean", "description": "Whether the window
is set to be always on top."}, | 47 "alwaysOnTop": {"type": "boolean", "description": "Whether the window
is set to be always on top."}, |
48 "sessionId": {"type": "string", "optional": true, "description": "The
session ID used to uniquely identify a Window obtained from the $(ref:sessions)
API."} | 48 "sessionId": {"type": "string", "optional": true, "description": "The
session ID used to uniquely identify a Window obtained from the $(ref:sessions)
API."} |
49 } | 49 } |
50 }, | 50 }, |
51 { | 51 { |
52 "id": "CreateType", | 52 "id": "CreateType", |
53 "type": "string", | 53 "type": "string", |
54 "description": "Specifies what type of browser window to create. The 'pa
nel' and 'detached_panel' types create a popup unless the '--enable-panels' flag
is set.", | 54 "description": "Specifies what type of browser window to create. 'panel'
is deprecated and only available to existing whitelisted extensions on Chrome O
S.", |
55 "enum": ["normal", "popup", "panel", "detached_panel"] | 55 "enum": ["normal", "popup", "panel"] |
56 } | 56 } |
57 ], | 57 ], |
58 "properties": { | 58 "properties": { |
59 "WINDOW_ID_NONE": { | 59 "WINDOW_ID_NONE": { |
60 "value": -1, | 60 "value": -1, |
61 "description": "The windowId value that represents the absence of a chro
me browser window." | 61 "description": "The windowId value that represents the absence of a chro
me browser window." |
62 }, | 62 }, |
63 "WINDOW_ID_CURRENT": { | 63 "WINDOW_ID_CURRENT": { |
64 "value": -2, | 64 "value": -2, |
65 "description": "The windowId value that represents the <a href='windows#
current-window'>current window</a>." | 65 "description": "The windowId value that represents the <a href='windows#
current-window'>current window</a>." |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 "tabId": {"type": "integer", "minimum": 0, "optional": true, "desc
ription": "The id of the tab for which you want to adopt to the new window."}, | 191 "tabId": {"type": "integer", "minimum": 0, "optional": true, "desc
ription": "The id of the tab for which you want to adopt to the new window."}, |
192 "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."}, | 192 "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."}, |
193 "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."}, | 193 "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."}, |
194 "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."}, | 194 "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."}, |
195 "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."}, | 195 "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."}, |
196 "focused": {"type": "boolean", "optional": true, "description": "I
f true, opens an active window. If false, opens an inactive window."}, | 196 "focused": {"type": "boolean", "optional": true, "description": "I
f true, opens an active window. If false, opens an inactive window."}, |
197 "incognito": {"type": "boolean", "optional": true, "description":
"Whether the new window should be an incognito window."}, | 197 "incognito": {"type": "boolean", "optional": true, "description":
"Whether the new window should be an incognito window."}, |
198 "type": { | 198 "type": { |
199 "$ref": "CreateType", | 199 "$ref": "CreateType", |
200 "optional": true, | 200 "optional": true, |
201 "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." | 201 "description": "Specifies what type of browser window to create.
" |
202 }, | 202 }, |
203 "state": { | 203 "state": { |
204 "$ref": "WindowState", | 204 "$ref": "WindowState", |
205 "optional": true, | 205 "optional": true, |
206 "description": "The initial state of the window. The 'minimized'
, 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'wi
dth' or 'height'." | 206 "description": "The initial state of the window. The 'minimized'
, 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'wi
dth' or 'height'." |
207 } | 207 } |
208 }, | 208 }, |
209 "optional": true | 209 "optional": true |
210 }, | 210 }, |
211 { | 211 { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 "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." | 315 "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." |
316 } | 316 } |
317 ], | 317 ], |
318 "parameters": [ | 318 "parameters": [ |
319 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} | 319 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} |
320 ] | 320 ] |
321 } | 321 } |
322 ] | 322 ] |
323 } | 323 } |
324 ] | 324 ] |
OLD | NEW |