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

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

Issue 8969011: Added populate parameter to chrome.windows.get, chrome.windows.getCurrent, (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years 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 "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 24 matching lines...) Expand all
35 } 35 }
36 }, 36 },
37 "functions": [ 37 "functions": [
38 { 38 {
39 "name": "get", 39 "name": "get",
40 "type": "function", 40 "type": "function",
41 "description": "Gets details about a window.", 41 "description": "Gets details about a window.",
42 "parameters": [ 42 "parameters": [
43 {"type": "integer", "name": "windowId", "minimum": 0}, 43 {"type": "integer", "name": "windowId", "minimum": 0},
44 { 44 {
45 "type": "object",
46 "name": "getInfo",
47 "optional": true,
48 "description": "",
49 "properties": {
50 "populate": {"type": "boolean", "optional": true, "description": " If true, the window object will have a <var>tabs</var> property that contains a list of the $ref:Tab objects" }
51 }
52 },
53 {
45 "type": "function", 54 "type": "function",
46 "name": "callback", 55 "name": "callback",
47 "parameters": [ 56 "parameters": [
48 { 57 {
49 "name": "window", "$ref": "Window" 58 "name": "window", "$ref": "Window"
50 } 59 }
51 ] 60 ]
52 } 61 }
53 ] 62 ]
54 }, 63 },
55 { 64 {
56 "name": "getCurrent", 65 "name": "getCurrent",
57 "type": "function", 66 "type": "function",
58 "description": "Gets the <a href='#current-window'>current window</a>.", 67 "description": "Gets the <a href='#current-window'>current window</a>.",
59 "parameters": [ 68 "parameters": [
60 { 69 {
70 "type": "object",
71 "name": "getInfo",
72 "optional": true,
73 "description": "",
74 "properties": {
75 "populate": {"type": "boolean", "optional": true, "description": " If true, the window object will have a <var>tabs</var> property that contains a list of the $ref:Tab objects" }
76 }
77 },
78 {
61 "type": "function", 79 "type": "function",
62 "name": "callback", 80 "name": "callback",
63 "parameters": [ 81 "parameters": [
64 { 82 {
65 "name": "window", "$ref": "Window" 83 "name": "window", "$ref": "Window"
66 } 84 }
67 ] 85 ]
68 } 86 }
69 ] 87 ]
70 }, 88 },
71 { 89 {
72 "name": "getLastFocused", 90 "name": "getLastFocused",
73 "type": "function", 91 "type": "function",
74 "description": "Gets the window that was most recently focused &mdash; t ypically the window 'on top'.", 92 "description": "Gets the window that was most recently focused &mdash; t ypically the window 'on top'.",
75 "parameters": [ 93 "parameters": [
76 { 94 {
95 "type": "object",
96 "name": "getInfo",
97 "optional": true,
98 "description": "",
99 "properties": {
100 "populate": {"type": "boolean", "optional": true, "description": " If true, the window object will have a <var>tabs</var> property that contains a list of the $ref:Tab objects" }
101 }
102 },
103 {
77 "type": "function", 104 "type": "function",
78 "name": "callback", 105 "name": "callback",
79 "parameters": [ 106 "parameters": [
80 { 107 {
81 "name": "window", "$ref": "Window" 108 "name": "window", "$ref": "Window"
82 } 109 }
83 ] 110 ]
84 } 111 }
85 ] 112 ]
86 }, 113 },
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 "name": "onFocusChanged", 254 "name": "onFocusChanged",
228 "type": "function", 255 "type": "function",
229 "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.", 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.",
230 "parameters": [ 257 "parameters": [
231 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."} 258 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."}
232 ] 259 ]
233 } 260 }
234 ] 261 ]
235 } 262 }
236 ] 263 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tabs_test.cc ('k') | chrome/renderer/resources/extensions/schema_generated_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698