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

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

Issue 9717011: Expose the chrome.windows.* API to platform apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable WindowsApi on Aura.x Created 8 years, 9 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 "dependencies": [ "tabs" ], 8 "dependencies": [ "tabs" ],
9 "types": [ 9 "types": [
10 { 10 {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 "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 focused window. This value is ignored for panels."}, 169 "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 focused window. This value is ignored for panels."},
170 "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 focused window. T his value is ignored for panels."}, 170 "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 focused window. T his value is ignored for panels."},
171 "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."}, 171 "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."},
172 "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."}, 172 "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."},
173 "focused": {"type": "boolean", "optional": true, "description": "I f true, opens an active window. If false, opens an inactive window."}, 173 "focused": {"type": "boolean", "optional": true, "description": "I f true, opens an active window. If false, opens an inactive window."},
174 "incognito": {"type": "boolean", "optional": true, "description": "Whether the new window should be an incognito window."}, 174 "incognito": {"type": "boolean", "optional": true, "description": "Whether the new window should be an incognito window."},
175 "type": { 175 "type": {
176 "type": "string", 176 "type": "string",
177 "optional": true, 177 "optional": true,
178 "description": "Specifies what type of browser window to create. The 'panel' type creates a popup unless the '--enable-panels' flag is set.", 178 "description": "Specifies what type of browser window to create. The 'panel' type creates a popup unless the '--enable-panels' flag is set.",
179 "enum": ["normal", "popup", "panel"] 179 "enum": ["normal", "popup", "panel", "shell"]
180 } 180 }
181 }, 181 },
182 "optional": true 182 "optional": true
183 }, 183 },
184 { 184 {
185 "type": "function", 185 "type": "function",
186 "name": "callback", 186 "name": "callback",
187 "optional": true, 187 "optional": true,
188 "parameters": [ 188 "parameters": [
189 { 189 {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 "name": "onFocusChanged", 265 "name": "onFocusChanged",
266 "type": "function", 266 "type": "function",
267 "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.", 267 "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.",
268 "parameters": [ 268 "parameters": [
269 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."} 269 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."}
270 ] 270 ]
271 } 271 }
272 ] 272 ]
273 } 273 }
274 ] 274 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/_permission_features.json ('k') | chrome/common/extensions/extension_permission_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698