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 "compiler_options": { |
| 9 "implemented_in": "chrome/browser/extensions/api/tabs/tabs_api.h" |
| 10 }, |
8 "dependencies": [ "tabs" ], | 11 "dependencies": [ "tabs" ], |
9 "types": [ | 12 "types": [ |
10 { | 13 { |
11 "id": "Window", | 14 "id": "Window", |
12 "type": "object", | 15 "type": "object", |
13 "properties": { | 16 "properties": { |
14 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, | 17 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, |
15 "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."}, |
16 "top": {"type": "integer", "description": "The offset of the window fr
om the top edge of the screen in pixels."}, | 19 "top": {"type": "integer", "description": "The offset of the window fr
om the top edge of the screen in pixels."}, |
17 "left": {"type": "integer", "description": "The offset of the window f
rom the left edge of the screen in pixels."}, | 20 "left": {"type": "integer", "description": "The offset of the window f
rom the left edge of the screen in pixels."}, |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 "name": "onFocusChanged", | 266 "name": "onFocusChanged", |
264 "type": "function", | 267 "type": "function", |
265 "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.", | 268 "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.", |
266 "parameters": [ | 269 "parameters": [ |
267 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} | 270 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} |
268 ] | 271 ] |
269 } | 272 } |
270 ] | 273 ] |
271 } | 274 } |
272 ] | 275 ] |
OLD | NEW |