Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/common/extensions/api/windows.json

Issue 21022018: Sessions API - previously Session Restore API. Supports restoring currently open foreign windows an… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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": "Window", 14 "id": "Window",
15 "type": "object", 15 "type": "object",
16 "properties": { 16 "properties": {
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 "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 from the $ref:sessions API, in which case sessionId may be present."},
dharcourt 2013/08/16 02:27:34 Nit: "when querying windows from" -> "when queryin
Kristen Dwan 2013/08/16 22:03:06 Done.
18 "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."},
19 "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:sessionRestore API."}, 19 "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."},
20 "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:sessionRestore API."}, 20 "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."},
21 "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:sessionRestore API."}, 21 "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."},
22 "height": {"type": "integer", "optional": true, "description": "The he ight of the window, including the frame, in pixels. Under some circumstances a W indow may not be assigned height property, for example when querying closed wind ows from the $ref:sessionRestore API."}, 22 "height": {"type": "integer", "optional": true, "description": "The he ight of the window, including the frame, in pixels. Under some circumstances a W indow may not be assigned height property, for example when querying closed wind ows from the $ref:sessions API."},
23 "tabs": {"type": "array", "items": { "$ref": "tabs.Tab" }, "optional": true, "description": "Array of $ref:tabs.Tab objects representing the current t abs in the window."}, 23 "tabs": {"type": "array", "items": { "$ref": "tabs.Tab" }, "optional": true, "description": "Array of $ref:tabs.Tab objects representing the current t abs in the window."},
24 "incognito": {"type": "boolean", "description": "Whether the window is incognito."}, 24 "incognito": {"type": "boolean", "description": "Whether the window is incognito."},
25 "type": { 25 "type": {
26 "type": "string", 26 "type": "string",
27 "optional": true, 27 "optional": true,
28 "description": "The type of browser window this is. Under some circu mstances a Window may not be assigned type property, for example when querying c losed windows from the $ref:sessionRestore API.", 28 "description": "The type of browser window this is. Under some circu mstances a Window may not be assigned type property, for example when querying c losed windows from the $ref:sessions API.",
29 "enum": ["normal", "popup", "panel", "app"] 29 "enum": ["normal", "popup", "panel", "app"]
30 }, 30 },
31 "state": { 31 "state": {
32 "type": "string", 32 "type": "string",
33 "optional": true, 33 "optional": true,
34 "description": "The state of this browser window. Under some circums tances a Window may not be assigned state property, for example when querying cl osed windows from the $ref:sessionRestore API.", 34 "description": "The state of this browser window. Under some circums tances a Window may not be assigned state property, for example when querying cl osed windows from the $ref:sessions API.",
35 "enum": ["normal", "minimized", "maximized", "fullscreen"] 35 "enum": ["normal", "minimized", "maximized", "fullscreen"]
36 }, 36 },
37 "alwaysOnTop": {"type": "boolean", "description": "Whether the window is set to be always on top."} 37 "alwaysOnTop": {"type": "boolean", "description": "Whether the window is set to be always on top."},
38 "sessionId": {"type": "string", "optional": true, "description": "The session ID used to uniquely identify a Window from the $ref:sessions API."}
dharcourt 2013/08/16 02:27:34 Nit: "a Window from" -> "a Window obtained from".
Kristen Dwan 2013/08/16 22:03:06 Done.
38 } 39 }
39 } 40 }
40 ], 41 ],
41 "properties": { 42 "properties": {
42 "WINDOW_ID_NONE": { 43 "WINDOW_ID_NONE": {
43 "value": -1, 44 "value": -1,
44 "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."
45 }, 46 },
46 "WINDOW_ID_CURRENT": { 47 "WINDOW_ID_CURRENT": {
47 "value": -2, 48 "value": -2,
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698