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

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

Issue 9328037: Add fullscreen state support for chrome.windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased onto ToT Created 8 years, 10 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 [ 1 [
2 { 2 {
3 "namespace": "windows", 3 "namespace": "windows",
4 "dependencies": [ "tabs" ], 4 "dependencies": [ "tabs" ],
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "Window", 7 "id": "Window",
8 "type": "object", 8 "type": "object",
9 "properties": { 9 "properties": {
10 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."}, 10 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."},
11 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, 11 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."},
12 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."}, 12 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."},
13 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."}, 13 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."},
14 "width": {"type": "integer", "description": "The width of the window i n pixels."}, 14 "width": {"type": "integer", "description": "The width of the window i n pixels."},
15 "height": {"type": "integer", "description": "The height of the window in pixels."}, 15 "height": {"type": "integer", "description": "The height of the window in pixels."},
16 "tabs": {"type": "array", "items": { "$ref": "Tab" }, "optional": true , "description": "Array of $ref:Tab objects representing the current tabs in the window."}, 16 "tabs": {"type": "array", "items": { "$ref": "Tab" }, "optional": true , "description": "Array of $ref:Tab objects representing the current tabs in the window."},
17 "incognito": {"type": "boolean", "description": "Whether the window is incognito."}, 17 "incognito": {"type": "boolean", "description": "Whether the window is incognito."},
18 "type": { 18 "type": {
19 "type": "string", 19 "type": "string",
20 "description": "The type of browser window this is.", 20 "description": "The type of browser window this is.",
21 "enum": ["normal", "popup", "panel", "app"] 21 "enum": ["normal", "popup", "panel", "app"]
22 }, 22 },
23 "state": { 23 "state": {
24 "type": "string", 24 "type": "string",
25 "description": "The state of this browser window.", 25 "description": "The state of this browser window.",
26 "enum": ["normal", "minimized", "maximized"] 26 "enum": ["normal", "minimized", "maximized", "fullscreen"]
27 } 27 }
28 } 28 }
29 } 29 }
30 ], 30 ],
31 "properties": { 31 "properties": {
32 "WINDOW_ID_NONE": { 32 "WINDOW_ID_NONE": {
33 "type": "integer", 33 "type": "integer",
34 "value": "-1", 34 "value": "-1",
35 "description": "The windowId value that represents the absence of a chro me browser window." 35 "description": "The windowId value that represents the absence of a chro me browser window."
36 }, 36 },
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 "properties": { 201 "properties": {
202 "left": {"type": "integer", "optional": true, "description": "The offset from the left edge of the screen to move the window to in pixels. This va lue is ignored for panels."}, 202 "left": {"type": "integer", "optional": true, "description": "The offset from the left edge of the screen to move the window to in pixels. This va lue is ignored for panels."},
203 "top": {"type": "integer", "optional": true, "description": "The o ffset from the top edge of the screen to move the window to in pixels. This valu e is ignored for panels."}, 203 "top": {"type": "integer", "optional": true, "description": "The o ffset from the top edge of the screen to move the window to in pixels. This valu e is ignored for panels."},
204 "width": {"type": "integer", "minimum": 0, "optional": true, "desc ription": "The width to resize the window to in pixels. This value is ignored fo r panels."}, 204 "width": {"type": "integer", "minimum": 0, "optional": true, "desc ription": "The width to resize the window to in pixels. This value is ignored fo r panels."},
205 "height": {"type": "integer", "minimum": 0, "optional": true, "des cription": "The height to resize the window to in pixels. This value is ignored for panels."}, 205 "height": {"type": "integer", "minimum": 0, "optional": true, "des cription": "The height to resize the window to in pixels. This value is ignored for panels."},
206 "focused": {"type": "boolean", "optional": true, "description": "I f true, brings the window to the front. If false, brings the next window in the z-order to the front."}, 206 "focused": {"type": "boolean", "optional": true, "description": "I f true, brings the window to the front. If false, brings the next window in the z-order to the front."},
207 "drawAttention": {"type": "boolean", "optional": true, "descriptio n": "If true, causes the window to be displayed in a manner that draws the user' s attention to the window, without changing the focused window. The effect lasts until the user changes focus to the window. This option has no effect if the wi ndow already has focus. Set to false to cancel a previous draw attention request ."}, 207 "drawAttention": {"type": "boolean", "optional": true, "descriptio n": "If true, causes the window to be displayed in a manner that draws the user' s attention to the window, without changing the focused window. The effect lasts until the user changes focus to the window. This option has no effect if the wi ndow already has focus. Set to false to cancel a previous draw attention request ."},
208 "state": { 208 "state": {
209 "type": "string", 209 "type": "string",
210 "optional": true, 210 "optional": true,
211 "description": "The new state of the window. The 'minimized' and 'maximized' states cannot be combined with 'left', 'top', 'width' or 'height'." , 211 "description": "The new state of the window. The 'minimized', 'm aximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'.",
212 "enum": ["normal", "minimized", "maximized"] 212 "enum": ["normal", "minimized", "maximized", "fullscreen"]
213 } 213 }
214 } 214 }
215 }, 215 },
216 { 216 {
217 "type": "function", 217 "type": "function",
218 "name": "callback", 218 "name": "callback",
219 "optional": true, 219 "optional": true,
220 "parameters": [ 220 "parameters": [
221 { 221 {
222 "name": "window", "$ref": "Window" 222 "name": "window", "$ref": "Window"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 "name": "onFocusChanged", 260 "name": "onFocusChanged",
261 "type": "function", 261 "type": "function",
262 "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.", 262 "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.",
263 "parameters": [ 263 "parameters": [
264 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."} 264 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."}
265 ] 265 ]
266 } 266 }
267 ] 267 ]
268 } 268 }
269 ] 269 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module_constants.cc ('k') | chrome/common/extensions/docs/windows.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698