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

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

Issue 9162002: Query the current window with chrome.tabs.query using -1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years, 11 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
« no previous file with comments | « chrome/common/extensions/api/tabs.json ('k') | chrome/common/extensions/docs/tabs.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "windows", 3 "namespace": "windows",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "Window", 6 "id": "Window",
7 "type": "object", 7 "type": "object",
8 "properties": { 8 "properties": {
9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."}, 9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."},
10 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, 10 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."},
(...skipping 14 matching lines...) Expand all
25 "enum": ["normal", "minimized", "maximized"] 25 "enum": ["normal", "minimized", "maximized"]
26 } 26 }
27 } 27 }
28 } 28 }
29 ], 29 ],
30 "properties": { 30 "properties": {
31 "WINDOW_ID_NONE": { 31 "WINDOW_ID_NONE": {
32 "type": "integer", 32 "type": "integer",
33 "value": "-1", 33 "value": "-1",
34 "description": "The windowId value that represents the absence of a chro me browser window." 34 "description": "The windowId value that represents the absence of a chro me browser window."
35 },
36 "WINDOW_ID_CURRENT": {
37 "type": "integer",
38 "value": "-2",
39 "description": "The windowId value that represents the <a href='windows. html#current-window'>current window</a>."
35 } 40 }
36 }, 41 },
37 "functions": [ 42 "functions": [
38 { 43 {
39 "name": "get", 44 "name": "get",
40 "type": "function", 45 "type": "function",
41 "description": "Gets details about a window.", 46 "description": "Gets details about a window.",
42 "parameters": [ 47 "parameters": [
43 {"type": "integer", "name": "windowId", "minimum": 0}, 48 {"type": "integer", "name": "windowId", "minimum": 0},
44 { 49 {
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 "name": "onFocusChanged", 259 "name": "onFocusChanged",
255 "type": "function", 260 "type": "function",
256 "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.", 261 "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.",
257 "parameters": [ 262 "parameters": [
258 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."} 263 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."}
259 ] 264 ]
260 } 265 }
261 ] 266 ]
262 } 267 }
263 ] 268 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/tabs.json ('k') | chrome/common/extensions/docs/tabs.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698