| 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 }, | |
| 11 "dependencies": [ "tabs" ], | 8 "dependencies": [ "tabs" ], |
| 12 "types": [ | 9 "types": [ |
| 13 { | 10 { |
| 14 "id": "Window", | 11 "id": "Window", |
| 15 "type": "object", | 12 "type": "object", |
| 16 "properties": { | 13 "properties": { |
| 17 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, | 14 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
window. Window IDs are unique within a browser session."}, |
| 18 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, | 15 "focused": {"type": "boolean", "description": "Whether the window is c
urrently the focused window."}, |
| 19 "top": {"type": "integer", "description": "The offset of the window fr
om the top edge of the screen in pixels."}, | 16 "top": {"type": "integer", "description": "The offset of the window fr
om the top 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."}, | 17 "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... |
| 266 "name": "onFocusChanged", | 263 "name": "onFocusChanged", |
| 267 "type": "function", | 264 "type": "function", |
| 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.", | 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.", |
| 269 "parameters": [ | 266 "parameters": [ |
| 270 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} | 267 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} |
| 271 ] | 268 ] |
| 272 } | 269 } |
| 273 ] | 270 ] |
| 274 } | 271 } |
| 275 ] | 272 ] |
| OLD | NEW |