OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "windows", | 3 "namespace": "windows", |
4 "types": [ | 4 "types": [ |
5 { | 5 { |
6 "id": "Window", | 6 "id": "Window", |
7 "type": "object", | 7 "type": "object", |
8 "properties": { | 8 "properties": { |
9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, | 9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, |
10 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, | 10 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, |
11 "top": {"type": "integer", "description": "The offset of the window fr
om the top edge of the screen in pixels."}, | 11 "top": {"type": "integer", "description": "The offset of the window fr
om the top edge of the screen in pixels."}, |
12 "left": {"type": "integer", "description": "The offset of the window f
rom the left edge of the screen in pixels."}, | 12 "left": {"type": "integer", "description": "The offset of the window f
rom the left edge of the screen in pixels."}, |
13 "width": {"type": "integer", "description": "The width of the window i
n pixels."}, | 13 "width": {"type": "integer", "description": "The width of the window i
n pixels."}, |
14 "height": {"type": "integer", "description": "The height of the window
in pixels."}, | 14 "height": {"type": "integer", "description": "The height of the window
in pixels."}, |
15 "tabs": {"type": "array", "items": { "$ref": "Tab" }, "optional": true
, "description": "Array of $ref:Tab objects representing the current tabs in the
window."}, | 15 "tabs": {"type": "array", "items": { "$ref": "tabs.Tab" }, "optional":
true, "description": "Array of $ref:Tab objects representing the current tabs i
n the window."}, |
16 "incognito": {"type": "boolean", "description": "Whether the window is
incognito."}, | 16 "incognito": {"type": "boolean", "description": "Whether the window is
incognito."}, |
17 "type": { | 17 "type": { |
18 "type": "string", | 18 "type": "string", |
19 "description": "The type of browser window this is.", | 19 "description": "The type of browser window this is.", |
20 "enum": ["normal", "popup", "panel", "app"] | 20 "enum": ["normal", "popup", "panel", "app"] |
21 }, | 21 }, |
22 "state": { | 22 "state": { |
23 "type": "string", | 23 "type": "string", |
24 "description": "The state of this browser window.", | 24 "description": "The state of this browser window.", |
25 "enum": ["normal", "minimized", "maximized"] | 25 "enum": ["normal", "minimized", "maximized"] |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 "name": "onFocusChanged", | 255 "name": "onFocusChanged", |
256 "type": "function", | 256 "type": "function", |
257 "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.", | 257 "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.", |
258 "parameters": [ | 258 "parameters": [ |
259 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} | 259 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} |
260 ] | 260 ] |
261 } | 261 } |
262 ] | 262 ] |
263 } | 263 } |
264 ] | 264 ] |
OLD | NEW |