3 "namespace": "windows",
9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the window. Window IDs are unique within a browser session."},
10 "focused": {"type": "boolean", "description": "Whether the window is currently the focused window."},
11 "top": {"type": "integer", "description": "The offset of the window from the top edge of the screen in pixels."},
12 "left": {"type": "integer", "description": "The offset of the window from the left edge of the screen in pixels."},
13 "width": {"type": "integer", "description": "The width of the window in pixels."},
14 "height": {"type": "integer", "description": "The height of the window in pixels."},
15 "tabs": {"type": "array", "items": { "$ref": "Tab" }, "optional": true, "description": "Array of $ref:Tab objects representing the current tabs in the window."},
16 "incognito": {"type": "boolean", "description": "Whether the window is incognito."},
19 "description": "The type of browser window this is.",
20 "enum": ["normal", "popup", "panel", "app"]
24 "description": "The state of this browser window.",
25 "enum": ["normal", "minimized", "maximized"]
34 "description": "The windowId value that represents the absence of a chrome browser window."
41 "description": "Gets details about a window.",
43 {"type": "integer", "name": "windowId", "minimum": 0},
50 "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" }
58 "name": "window", "$ref": "Window"
67 "description": "Gets the <a href='#current-window'>current window</a>.",
75 "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" }
83 "name": "window", "$ref": "Window"
90 "name": "getLastFocused",
92 "description": "Gets the window that was most recently focused — typically the window 'on top'.",
100 "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" }
108 "name": "window", "$ref": "Window"
117 "description": "Gets all windows.",
125 "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." }
133 "name": "windows", "type": "array", "items": { "$ref": "Window" }
143 "description": "Creates (opens) a new browser with any optional sizing, position or default URL provided.",
147 "name": "createData",
151 "description": "A URL or list of URLs to open as tabs in the window. Fully-qualified URLs must include a scheme (i.e. 'http://www.google.com', not 'www.google.com'). Relative URLs will be relative to the current page within the extension. Defaults to the New Tab Page.",
155 {"type": "array", "items": {"type": "string"}}
158 "tabId": {"type": "integer", "minimum": 0, "optional": true, "description": "The id of the tab for which you want to adopt to the new window."},
159 "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 "top": {"type": "integer", "optional": true, "description": "The number of pixels to position the new window from the top 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 "width": {"type": "integer", "minimum": 0, "optional": true, "description": "The width in pixels of the new window. If not specified defaults to a natural width."},
162 "height": {"type": "integer", "minimum": 0, "optional": true, "description": "The height in pixels of the new window. If not specified defaults to a natural height."},
163 "focused": {"type": "boolean", "optional": true, "description": "If true, opens an active window. If false, opens an inactive window."},
164 "incognito": {"type": "boolean", "optional": true, "description": "Whether the new window should be an incognito window."},
168 "description": "Specifies what type of browser window to create. The 'panel' type creates a popup unless the '--enable-panels' flag is set.",
169 "enum": ["normal", "popup", "panel"]
180 "name": "window", "$ref": "Window", "description": "Contains details about the created window.",
190 "description": "Updates the properties of a window. Specify only the properties that you want to change; unspecified properties will be left unchanged.",
192 {"type": "integer", "name": "windowId", "minimum": 0},
195 "name": "updateInfo",
197 "left": {"type": "integer", "optional": true, "description": "The offset from the left edge of the screen to move the window to in pixels. This value is ignored for panels."},
198 "top": {"type": "integer", "optional": true, "description": "The offset from the top edge of the screen to move the window to in pixels. This value is ignored for panels."},
199 "width": {"type": "integer", "minimum": 0, "optional": true, "description": "The width to resize the window to in pixels. This value is ignored for panels."},
200 "height": {"type": "integer", "minimum": 0, "optional": true, "description": "The height to resize the window to in pixels. This value is ignored for panels."},
201 "focused": {"type": "boolean", "optional": true, "description": "If true, brings the window to the front. If false, brings the next window in the z-order to the front."},
202 "drawAttention": {"type": "boolean", "optional": true, "description": "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."},
206 "description": "The new state of the window. The 'minimized' and 'maximized' states cannot be combined with 'left', 'top', 'width' or 'height'.",
207 "enum": ["normal", "minimized", "maximized"]
217 "name": "window", "$ref": "Window"
226 "description": "Removes (closes) a window, and all the tabs inside it.",
228 {"type": "integer", "name": "windowId", "minimum": 0},
229 {"type": "function", "name": "callback", "optional": true, "parameters": []}
237 "description": "Fired when a window is created.",
242 "description": "Details of the window that was created."
249 "description": "Fired when a window is removed (closed).",
251 {"type": "integer", "name": "windowId", "minimum": 0, "description": "ID of the removed window."}
255 "name": "onFocusChanged",
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 some Linux window managers, WINDOW_ID_NONE will always be sent immediately preceding a switch from one chrome window to another.",
259 {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."}