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

Side by Side Diff: tools/json_schema_compiler/test/windows.json

Issue 2424143002: Elim detached_panel type and update chrome.windows documentation (Closed)
Patch Set: . Created 4 years, 2 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
« no previous file with comments | « chrome/common/extensions/docs/templates/json/whats_new.json ('k') | no next file » | 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 "description": "The windows API.", 4 "description": "The windows API.",
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."},
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 "tabId": {"type": "integer", "minimum": 0, "optional": true, "desc ription": "The id of the tab for which you want to adopt to the new window."}, 159 "tabId": {"type": "integer", "minimum": 0, "optional": true, "desc ription": "The id of the tab for which you want to adopt to the new window."},
160 "left": {"type": "integer", "optional": true, "description": "The number of pixels to position the new window from the left edge of the screen. If not specified, the new window is offset naturally from the last focusd window. This value is ignored for panels."}, 160 "left": {"type": "integer", "optional": true, "description": "The number of pixels to position the new window from the left edge of the screen. If not specified, the new window is offset naturally from the last focusd window. This value is ignored for panels."},
161 "top": {"type": "integer", "optional": true, "description": "The n umber of pixels to position the new window from the top edge of the screen. If n ot specified, the new window is offset naturally from the last focusd window. Th is value is ignored for panels."}, 161 "top": {"type": "integer", "optional": true, "description": "The n umber of pixels to position the new window from the top edge of the screen. If n ot specified, the new window is offset naturally from the last focusd window. Th is value is ignored for panels."},
162 "width": {"type": "integer", "minimum": 0, "optional": true, "desc ription": "The width in pixels of the new window. If not specified defaults to a natural width."}, 162 "width": {"type": "integer", "minimum": 0, "optional": true, "desc ription": "The width in pixels of the new window. If not specified defaults to a natural width."},
163 "height": {"type": "integer", "minimum": 0, "optional": true, "des cription": "The height in pixels of the new window. If not specified defaults to a natural height."}, 163 "height": {"type": "integer", "minimum": 0, "optional": true, "des cription": "The height in pixels of the new window. If not specified defaults to a natural height."},
164 "focused": {"type": "boolean", "optional": true, "description": "I f true, opens an active window. If false, opens an inactive window."}, 164 "focused": {"type": "boolean", "optional": true, "description": "I f true, opens an active window. If false, opens an inactive window."},
165 "incognito": {"type": "boolean", "optional": true, "description": "Whether the new window should be an incognito window."}, 165 "incognito": {"type": "boolean", "optional": true, "description": "Whether the new window should be an incognito window."},
166 "type": { 166 "type": {
167 "type": "string", 167 "type": "string",
168 "optional": true, 168 "optional": true,
169 "description": "Specifies what type of browser window to create. The 'panel' type creates a popup unless the '--enable-panels' flag is set.", 169 "description": "Specifies what type of browser window to create. ",
170 "enum": ["normal", "popup", "panel"] 170 "enum": ["normal", "popup", "panel"]
171 } 171 }
172 }, 172 },
173 "optional": true 173 "optional": true
174 }, 174 },
175 { 175 {
176 "type": "function", 176 "type": "function",
177 "name": "callback", 177 "name": "callback",
178 "optional": true, 178 "optional": true,
179 "parameters": [ 179 "parameters": [
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 "name": "onFocusChanged", 256 "name": "onFocusChanged",
257 "type": "function", 257 "type": "function",
258 "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.", 258 "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.",
259 "parameters": [ 259 "parameters": [
260 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."} 260 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."}
261 ] 261 ]
262 } 262 }
263 ] 263 ]
264 } 264 }
265 ] 265 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/templates/json/whats_new.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698