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" |
11 }, | 11 }, |
12 "types": [ | 12 "types": [ |
13 { | 13 { |
14 "id": "WindowType", | 14 "id": "WindowType", |
15 "type": "string", | 15 "type": "string", |
16 "description": "The type of browser window this is. Under some circumsta nces a Window may not be assigned type property, for example when querying close d windows from the $(ref:sessions) API.", | 16 "description": "The type of browser window this is. Under some circumsta nces a Window may not be assigned type property, for example when querying close d windows from the $(ref:sessions) API.", |
17 "enum": ["normal", "popup", "panel", "app", "devtools"] | 17 "enum": ["normal", "popup", "panel", "app", "devtools"] |
18 }, | 18 }, |
19 { | 19 { |
20 "id": "WindowState", | 20 "id": "WindowState", |
21 "type": "string", | 21 "type": "string", |
22 "description": "The state of this browser window. Under some circumstanc es a Window may not be assigned state property, for example when querying closed windows from the $(ref:sessions) API.", | 22 "description": "The state of this browser window. Under some circumstanc es a Window may not be assigned state property, for example when querying closed windows from the $(ref:sessions) API.", |
23 "enum": ["normal", "minimized", "maximized", "fullscreen", "docked"] | 23 "enum": ["normal", "minimized", "maximized", "fullscreen"] |
afakhry
2017/03/09 22:28:27
I wonder if this change will break some extensions
| |
24 }, | 24 }, |
25 { | 25 { |
26 "id": "Window", | 26 "id": "Window", |
27 "type": "object", | 27 "type": "object", |
28 "properties": { | 28 "properties": { |
29 "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 windows using the $(ref:sessions) API, in which case a session ID may be presen t."}, | 29 "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 windows using the $(ref:sessions) API, in which case a session ID may be presen t."}, |
30 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, | 30 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, |
31 "top": {"type": "integer", "optional": true, "description": "The offse t of the window from the top edge of the screen in pixels. Under some circumstan ces a Window may not be assigned top property, for example when querying closed windows from the $(ref:sessions) API."}, | 31 "top": {"type": "integer", "optional": true, "description": "The offse t of the window from the top edge of the screen in pixels. Under some circumstan ces a Window may not be assigned top property, for example when querying closed windows from the $(ref:sessions) API."}, |
32 "left": {"type": "integer", "optional": true, "description": "The offs et of the window from the left edge of the screen in pixels. Under some circumst ances a Window may not be assigned left property, for example when querying clos ed windows from the $(ref:sessions) API."}, | 32 "left": {"type": "integer", "optional": true, "description": "The offs et of the window from the left edge of the screen in pixels. Under some circumst ances a Window may not be assigned left property, for example when querying clos ed windows from the $(ref:sessions) API."}, |
33 "width": {"type": "integer", "optional": true, "description": "The wid th of the window, including the frame, in pixels. Under some circumstances a Win dow may not be assigned width property, for example when querying closed windows from the $(ref:sessions) API."}, | 33 "width": {"type": "integer", "optional": true, "description": "The wid th of the window, including the frame, in pixels. Under some circumstances a Win dow may not be assigned width property, for example when querying closed windows from the $(ref:sessions) API."}, |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 "description": "Conditions that the window's type being removed must satisfy. By default it will satisfy <code>['app', 'normal', 'panel', 'popup']</ code>, with <code>'app'</code> and <code>'panel'</code> window types limited to the extension's own windows." | 315 "description": "Conditions that the window's type being removed must satisfy. By default it will satisfy <code>['app', 'normal', 'panel', 'popup']</ code>, with <code>'app'</code> and <code>'panel'</code> window types limited to the extension's own windows." |
316 } | 316 } |
317 ], | 317 ], |
318 "parameters": [ | 318 "parameters": [ |
319 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."} | 319 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."} |
320 ] | 320 ] |
321 } | 321 } |
322 ] | 322 ] |
323 } | 323 } |
324 ] | 324 ] |
OLD | NEW |