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

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

Issue 8586045: Add extension API to change window show state using chrome.windows.update(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 9 years, 1 month 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": "extension", 3 "namespace": "extension",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "MessageSender", 6 "id": "MessageSender",
7 "type": "object", 7 "type": "object",
8 "description": "An object containing information about the script contex t that sent a message or request.", 8 "description": "An object containing information about the script contex t that sent a message or request.",
9 "properties": { 9 "properties": {
10 "tab": {"$ref": "Tab", "optional": true, "description":"This property will <b>only</b> be present when the connection was opened from a tab or content script."}, 10 "tab": {"$ref": "Tab", "optional": true, "description":"This property will <b>only</b> be present when the connection was opened from a tab or content script."},
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."}, 1150 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."},
1151 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."}, 1151 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."},
1152 "width": {"type": "integer", "description": "The width of the window i n pixels."}, 1152 "width": {"type": "integer", "description": "The width of the window i n pixels."},
1153 "height": {"type": "integer", "description": "The height of the window in pixels."}, 1153 "height": {"type": "integer", "description": "The height of the window in pixels."},
1154 "tabs": {"type": "array", "items": { "$ref": "Tab" }, "optional": true , "description": "Array of $ref:Tab objects representing the current tabs in the window."}, 1154 "tabs": {"type": "array", "items": { "$ref": "Tab" }, "optional": true , "description": "Array of $ref:Tab objects representing the current tabs in the window."},
1155 "incognito": {"type": "boolean", "description": "Whether the window is incognito."}, 1155 "incognito": {"type": "boolean", "description": "Whether the window is incognito."},
1156 "type": { 1156 "type": {
1157 "type": "string", 1157 "type": "string",
1158 "description": "The type of browser window this is.", 1158 "description": "The type of browser window this is.",
1159 "enum": ["normal", "popup", "panel", "app"] 1159 "enum": ["normal", "popup", "panel", "app"]
1160 } 1160 },
1161 "state": {
1162 "type": "string",
1163 "description": "The state of this browser window.",
1164 "enum": ["normal", "minimized", "maximized"]
1165 }
1161 } 1166 }
1162 } 1167 }
1163 ], 1168 ],
1164 "properties": { 1169 "properties": {
1165 "WINDOW_ID_NONE": { 1170 "WINDOW_ID_NONE": {
1166 "type": "integer", 1171 "type": "integer",
1167 "value": "-1", 1172 "value": "-1",
1168 "description": "The windowId value that represents the absence of a chro me browser window." 1173 "description": "The windowId value that represents the absence of a chro me browser window."
1169 } 1174 }
1170 }, 1175 },
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1298 {"type": "integer", "name": "windowId", "minimum": 0}, 1303 {"type": "integer", "name": "windowId", "minimum": 0},
1299 { 1304 {
1300 "type": "object", 1305 "type": "object",
1301 "name": "updateInfo", 1306 "name": "updateInfo",
1302 "properties": { 1307 "properties": {
1303 "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."}, 1308 "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."},
1304 "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."}, 1309 "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."},
1305 "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."}, 1310 "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."},
1306 "height": {"type": "integer", "minimum": 0, "optional": true, "des cription": "The height to resize the window to in pixels. This value is ignored for panels."}, 1311 "height": {"type": "integer", "minimum": 0, "optional": true, "des cription": "The height to resize the window to in pixels. This value is ignored for panels."},
1307 "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."}, 1312 "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."},
1308 "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 set to false or if the window already has focus."} 1313 "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 set to false or if the window already has focus."},
1314 "state": {
1315 "type": "string",
1316 "optional": true,
1317 "description": "The new state of the window. The 'minimized' and 'maximized' states cannot be combined with 'left', 'top', 'width' or 'height'." ,
1318 "enum": ["normal", "minimized", "maximized"]
1319 }
1309 } 1320 }
1310 }, 1321 },
1311 { 1322 {
1312 "type": "function", 1323 "type": "function",
1313 "name": "callback", 1324 "name": "callback",
1314 "optional": true, 1325 "optional": true,
1315 "parameters": [ 1326 "parameters": [
1316 { 1327 {
1317 "name": "window", "$ref": "Window" 1328 "name": "window", "$ref": "Window"
1318 } 1329 }
(...skipping 7921 matching lines...) Expand 10 before | Expand all | Expand 10 after
9240 } 9251 }
9241 } 9252 }
9242 } 9253 }
9243 ] 9254 ]
9244 } 9255 }
9245 ] 9256 ]
9246 } 9257 }
9247 ] 9258 ]
9248 } 9259 }
9249 ] 9260 ]
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/common/extensions/docs/windows.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698