OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "namespace": "windows", | 3 "namespace": "windows", |
4 "compile": true, | |
5 "types": [ | 4 "types": [ |
6 { | 5 { |
7 "id": "Window", | 6 "id": "Window", |
8 "type": "object", | 7 "type": "object", |
9 "properties": { | 8 "properties": { |
10 "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."}, |
11 "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."}, |
12 "top": {"type": "integer", "description": "The offset of the window fr
om the top edge of the screen in pixels."}, | 11 "top": {"type": "integer", "description": "The offset of the window fr
om the top edge of the screen in pixels."}, |
13 "left": {"type": "integer", "description": "The offset of the window f
rom the left edge of the screen in pixels."}, | 12 "left": {"type": "integer", "description": "The offset of the window f
rom the left edge of the screen in pixels."}, |
14 "width": {"type": "integer", "description": "The width of the window i
n pixels."}, | 13 "width": {"type": "integer", "description": "The width of the window i
n pixels."}, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 "parameters": [ | 131 "parameters": [ |
133 { | 132 { |
134 "name": "windows", "type": "array", "items": { "$ref": "Window"
} | 133 "name": "windows", "type": "array", "items": { "$ref": "Window"
} |
135 } | 134 } |
136 ] | 135 ] |
137 } | 136 } |
138 ] | 137 ] |
139 }, | 138 }, |
140 { | 139 { |
141 "name": "create", | 140 "name": "create", |
| 141 "nocompile": true, |
142 "type": "function", | 142 "type": "function", |
143 "description": "Creates (opens) a new browser with any optional sizing,
position or default URL provided.", | 143 "description": "Creates (opens) a new browser with any optional sizing,
position or default URL provided.", |
144 "parameters": [ | 144 "parameters": [ |
145 { | 145 { |
146 "type": "object", | 146 "type": "object", |
147 "name": "createData", | 147 "name": "createData", |
148 "properties": { | 148 "properties": { |
149 "url": { | 149 "url": { |
150 "type": "string", | 150 "type": "string", |
151 "description": "A URL or list of URLs to open as tabs in the win
dow. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', n
ot 'www.google.com'). Relative URLs will be relative to the current page within
the extension. Defaults to the New Tab Page.", | 151 "description": "A URL or list of URLs to open as tabs in the win
dow. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', n
ot 'www.google.com'). Relative URLs will be relative to the current page within
the extension. Defaults to the New Tab Page.", |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 "name": "onFocusChanged", | 255 "name": "onFocusChanged", |
256 "type": "function", | 256 "type": "function", |
257 "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.", | 257 "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 "parameters": [ | 258 "parameters": [ |
259 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} | 259 {"type": "integer", "name": "windowId", "minimum": -1, "description":
"ID of the newly focused window."} |
260 ] | 260 ] |
261 } | 261 } |
262 ] | 262 ] |
263 } | 263 } |
264 ] | 264 ] |
OLD | NEW |