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

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

Issue 10381089: Revert 136296 - Make all extension api types fully qualified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 {
11 "id": "Window", 11 "id": "Window",
12 "type": "object", 12 "type": "object",
13 "properties": { 13 "properties": {
14 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."}, 14 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."},
15 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."}, 15 "focused": {"type": "boolean", "description": "Whether the window is c urrently the focused window."},
16 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."}, 16 "top": {"type": "integer", "description": "The offset of the window fr om the top edge of the screen in pixels."},
17 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."}, 17 "left": {"type": "integer", "description": "The offset of the window f rom the left edge of the screen in pixels."},
18 "width": {"type": "integer", "description": "The width of the window i n pixels."}, 18 "width": {"type": "integer", "description": "The width of the window i n pixels."},
19 "height": {"type": "integer", "description": "The height of the window in pixels."}, 19 "height": {"type": "integer", "description": "The height of the window in pixels."},
20 "tabs": {"type": "array", "items": { "$ref": "tabs.Tab" }, "optional": true, "description": "Array of $ref:tabs.Tab objects representing the current t abs in the window."}, 20 "tabs": {"type": "array", "items": { "$ref": "Tab" }, "optional": true , "description": "Array of $ref:Tab objects representing the current tabs in the window."},
21 "incognito": {"type": "boolean", "description": "Whether the window is incognito."}, 21 "incognito": {"type": "boolean", "description": "Whether the window is incognito."},
22 "type": { 22 "type": {
23 "type": "string", 23 "type": "string",
24 "description": "The type of browser window this is.", 24 "description": "The type of browser window this is.",
25 "enum": ["normal", "popup", "panel", "app", "shell"] 25 "enum": ["normal", "popup", "panel", "app", "shell"]
26 }, 26 },
27 "state": { 27 "state": {
28 "type": "string", 28 "type": "string",
29 "description": "The state of this browser window.", 29 "description": "The state of this browser window.",
30 "enum": ["normal", "minimized", "maximized", "fullscreen"] 30 "enum": ["normal", "minimized", "maximized", "fullscreen"]
(...skipping 18 matching lines...) Expand all
49 "type": "function", 49 "type": "function",
50 "description": "Gets details about a window.", 50 "description": "Gets details about a window.",
51 "parameters": [ 51 "parameters": [
52 {"type": "integer", "name": "windowId", "minimum": -2}, 52 {"type": "integer", "name": "windowId", "minimum": -2},
53 { 53 {
54 "type": "object", 54 "type": "object",
55 "name": "getInfo", 55 "name": "getInfo",
56 "optional": true, 56 "optional": true,
57 "description": "", 57 "description": "",
58 "properties": { 58 "properties": {
59 "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:tabs.Tab objects" } 59 "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" }
60 } 60 }
61 }, 61 },
62 { 62 {
63 "type": "function", 63 "type": "function",
64 "name": "callback", 64 "name": "callback",
65 "parameters": [ 65 "parameters": [
66 { 66 {
67 "name": "window", "$ref": "Window" 67 "name": "window", "$ref": "Window"
68 } 68 }
69 ] 69 ]
70 } 70 }
71 ] 71 ]
72 }, 72 },
73 { 73 {
74 "name": "getCurrent", 74 "name": "getCurrent",
75 "type": "function", 75 "type": "function",
76 "description": "Gets the <a href='#current-window'>current window</a>.", 76 "description": "Gets the <a href='#current-window'>current window</a>.",
77 "parameters": [ 77 "parameters": [
78 { 78 {
79 "type": "object", 79 "type": "object",
80 "name": "getInfo", 80 "name": "getInfo",
81 "optional": true, 81 "optional": true,
82 "description": "", 82 "description": "",
83 "properties": { 83 "properties": {
84 "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:tabs.Tab objects" } 84 "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" }
85 } 85 }
86 }, 86 },
87 { 87 {
88 "type": "function", 88 "type": "function",
89 "name": "callback", 89 "name": "callback",
90 "parameters": [ 90 "parameters": [
91 { 91 {
92 "name": "window", "$ref": "Window" 92 "name": "window", "$ref": "Window"
93 } 93 }
94 ] 94 ]
95 } 95 }
96 ] 96 ]
97 }, 97 },
98 { 98 {
99 "name": "getLastFocused", 99 "name": "getLastFocused",
100 "type": "function", 100 "type": "function",
101 "description": "Gets the window that was most recently focused &mdash; t ypically the window 'on top'.", 101 "description": "Gets the window that was most recently focused &mdash; t ypically the window 'on top'.",
102 "parameters": [ 102 "parameters": [
103 { 103 {
104 "type": "object", 104 "type": "object",
105 "name": "getInfo", 105 "name": "getInfo",
106 "optional": true, 106 "optional": true,
107 "description": "", 107 "description": "",
108 "properties": { 108 "properties": {
109 "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:tabs.Tab objects" } 109 "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" }
110 } 110 }
111 }, 111 },
112 { 112 {
113 "type": "function", 113 "type": "function",
114 "name": "callback", 114 "name": "callback",
115 "parameters": [ 115 "parameters": [
116 { 116 {
117 "name": "window", "$ref": "Window" 117 "name": "window", "$ref": "Window"
118 } 118 }
119 ] 119 ]
120 } 120 }
121 ] 121 ]
122 }, 122 },
123 { 123 {
124 "name": "getAll", 124 "name": "getAll",
125 "type": "function", 125 "type": "function",
126 "description": "Gets all windows.", 126 "description": "Gets all windows.",
127 "parameters": [ 127 "parameters": [
128 { 128 {
129 "type": "object", 129 "type": "object",
130 "name": "getInfo", 130 "name": "getInfo",
131 "optional": true, 131 "optional": true,
132 "description": "", 132 "description": "",
133 "properties": { 133 "properties": {
134 "populate": {"type": "boolean", "optional": true, "description": " If true, each window object will have a <var>tabs</var> property that contains a list of the $ref:tabs.Tab objects for that window." } 134 "populate": {"type": "boolean", "optional": true, "description": " If true, each window object will have a <var>tabs</var> property that contains a list of the $ref:Tab objects for that window." }
135 } 135 }
136 }, 136 },
137 { 137 {
138 "type": "function", 138 "type": "function",
139 "name": "callback", 139 "name": "callback",
140 "parameters": [ 140 "parameters": [
141 { 141 {
142 "name": "windows", "type": "array", "items": { "$ref": "Window" } 142 "name": "windows", "type": "array", "items": { "$ref": "Window" }
143 } 143 }
144 ] 144 ]
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 "name": "onFocusChanged", 263 "name": "onFocusChanged",
264 "type": "function", 264 "type": "function",
265 "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.", 265 "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.",
266 "parameters": [ 266 "parameters": [
267 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."} 267 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."}
268 ] 268 ]
269 } 269 }
270 ] 270 ]
271 } 271 }
272 ] 272 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/ttsEngine.json ('k') | chrome/common/extensions/docs/browserAction.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698