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" |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 } | 40 } |
41 ], | 41 ], |
42 "properties": { | 42 "properties": { |
43 "WINDOW_ID_NONE": { | 43 "WINDOW_ID_NONE": { |
44 "value": -1, | 44 "value": -1, |
45 "description": "The windowId value that represents the absence of a chro
me browser window." | 45 "description": "The windowId value that represents the absence of a chro
me browser window." |
46 }, | 46 }, |
47 "WINDOW_ID_CURRENT": { | 47 "WINDOW_ID_CURRENT": { |
48 "value": -2, | 48 "value": -2, |
49 "description": "The windowId value that represents the <a href='windows.
html#current-window'>current window</a>." | 49 "description": "The windowId value that represents the <a href='windows#
current-window'>current window</a>." |
50 } | 50 } |
51 }, | 51 }, |
52 "functions": [ | 52 "functions": [ |
53 { | 53 { |
54 "name": "get", | 54 "name": "get", |
55 "type": "function", | 55 "type": "function", |
56 "description": "Gets details about a window.", | 56 "description": "Gets details about a window.", |
57 "parameters": [ | 57 "parameters": [ |
58 {"type": "integer", "name": "windowId", "minimum": -2}, | 58 {"type": "integer", "name": "windowId", "minimum": -2}, |
59 { | 59 { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 "name": "onFocusChanged", | 268 "name": "onFocusChanged", |
269 "type": "function", | 269 "type": "function", |
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 "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.", |
271 "parameters": [ | 271 "parameters": [ |
272 {"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."} |
273 ] | 273 ] |
274 } | 274 } |
275 ] | 275 ] |
276 } | 276 } |
277 ] | 277 ] |
OLD | NEW |