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" |
11 }, | 11 }, |
12 "types": [ | 12 "types": [ |
13 { | 13 { |
14 "id": "WindowType", | 14 "id": "WindowType", |
15 "type": "string", | 15 "type": "string", |
16 "description": "The type of browser window this is. Under some circumsta
nces a Window may not be assigned type property, for example when querying close
d windows from the $(ref:sessions) API.", | 16 "description": "The type of browser window this is. Under some circumsta
nces a Window may not be assigned type property, for example when querying close
d windows from the $(ref:sessions) API.", |
17 "enum": ["normal", "popup", "panel", "app"] | 17 "enum": ["normal", "popup", "panel", "app"] |
18 }, | 18 }, |
19 { | 19 { |
20 "id": "WindowState", | 20 "id": "WindowState", |
21 "type": "string", | 21 "type": "string", |
22 "description": "The state of this browser window. Under some circumstanc
es a Window may not be assigned state property, for example when querying closed
windows from the $(ref:sessions) API.", | 22 "description": "The state of this browser window. Under some circumstanc
es a Window may not be assigned state property, for example when querying closed
windows from the $(ref:sessions) API.", |
23 "enum": ["normal", "minimized", "maximized", "fullscreen"] | 23 "enum": ["normal", "minimized", "maximized", "fullscreen", "docked"] |
24 }, | 24 }, |
25 { | 25 { |
26 "id": "Window", | 26 "id": "Window", |
27 "type": "object", | 27 "type": "object", |
28 "properties": { | 28 "properties": { |
29 "id": {"type": "integer", "optional": true, "minimum": 0, "description
": "The ID of the window. Window IDs are unique within a browser session. Under
some circumstances a Window may not be assigned an ID, for example when querying
windows using the $(ref:sessions) API, in which case a session ID may be presen
t."}, | 29 "id": {"type": "integer", "optional": true, "minimum": 0, "description
": "The ID of the window. Window IDs are unique within a browser session. Under
some circumstances a Window may not be assigned an ID, for example when querying
windows using the $(ref:sessions) API, in which case a session ID may be presen
t."}, |
30 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, | 30 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, |
31 "top": {"type": "integer", "optional": true, "description": "The offse
t of the window from the top edge of the screen in pixels. Under some circumstan
ces a Window may not be assigned top property, for example when querying closed
windows from the $(ref:sessions) API."}, | 31 "top": {"type": "integer", "optional": true, "description": "The offse
t of the window from the top edge of the screen in pixels. Under some circumstan
ces a Window may not be assigned top property, for example when querying closed
windows from the $(ref:sessions) API."}, |
32 "left": {"type": "integer", "optional": true, "description": "The offs
et of the window from the left edge of the screen in pixels. Under some circumst
ances a Window may not be assigned left property, for example when querying clos
ed windows from the $(ref:sessions) API."}, | 32 "left": {"type": "integer", "optional": true, "description": "The offs
et of the window from the left edge of the screen in pixels. Under some circumst
ances a Window may not be assigned left property, for example when querying clos
ed windows from the $(ref:sessions) API."}, |
33 "width": {"type": "integer", "optional": true, "description": "The wid
th of the window, including the frame, in pixels. Under some circumstances a Win
dow may not be assigned width property, for example when querying closed windows
from the $(ref:sessions) API."}, | 33 "width": {"type": "integer", "optional": true, "description": "The wid
th of the window, including the frame, in pixels. Under some circumstances a Win
dow may not be assigned width property, for example when querying closed windows
from the $(ref:sessions) API."}, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 "name": "onFocusChanged", | 287 "name": "onFocusChanged", |
288 "type": "function", | 288 "type": "function", |
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.", | 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.", |
290 "parameters": [ | 290 "parameters": [ |
291 {"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."} |
292 ] | 292 ] |
293 } | 293 } |
294 ] | 294 ] |
295 } | 295 } |
296 ] | 296 ] |
OLD | NEW |