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> module to interact with
browser windows. You can use this module to create, modify, and rearrange window
s in the browser.", |
8 "compiler_options": { | 9 "compiler_options": { |
9 "implemented_in": "chrome/browser/extensions/api/tabs/tabs_api.h" | 10 "implemented_in": "chrome/browser/extensions/api/tabs/tabs_api.h" |
10 }, | 11 }, |
11 "types": [ | 12 "types": [ |
12 { | 13 { |
13 "id": "Window", | 14 "id": "Window", |
14 "type": "object", | 15 "type": "object", |
15 "properties": { | 16 "properties": { |
16 "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
closed windows from the $ref:sessionRestore API."}, | 17 "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
closed windows from the $ref:sessionRestore API."}, |
17 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, | 18 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 "name": "onFocusChanged", | 268 "name": "onFocusChanged", |
268 "type": "function", | 269 "type": "function", |
269 "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.", | 270 "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.", |
270 "parameters": [ | 271 "parameters": [ |
271 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} | 272 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} |
272 ] | 273 ] |
273 } | 274 } |
274 ] | 275 ] |
275 } | 276 } |
276 ] | 277 ] |
OLD | NEW |