| Index: chrome/common/extensions/api/windows.json
|
| diff --git a/chrome/common/extensions/api/windows.json b/chrome/common/extensions/api/windows.json
|
| index bd79fe802aa16864e6dd231a7b45373c5f49c606..d63e90624c18fe6a80d39b84533c711484bed12a 100644
|
| --- a/chrome/common/extensions/api/windows.json
|
| +++ b/chrome/common/extensions/api/windows.json
|
| @@ -78,7 +78,8 @@
|
| "optional": true,
|
| "description": "",
|
| "properties": {
|
| - "populate": {"type": "boolean", "optional": true, "description": "If true, the $(ref:windows.Window) object will have a <var>tabs</var> property that contains a list of the $(ref:tabs.Tab) objects. The <code>Tab</code> objects only contain the <code>url</code>, <code>title</code> and <code>favIconUrl</code> properties if the extension's manifest file includes the <code>\"tabs\"</code> permission." }
|
| + "populate": {"type": "boolean", "optional": true, "description": "If true, the $(ref:windows.Window) object will have a <var>tabs</var> property that contains a list of the $(ref:tabs.Tab) objects. The <code>Tab</code> objects only contain the <code>url</code>, <code>title</code> and <code>favIconUrl</code> properties if the extension's manifest file includes the <code>\"tabs\"</code> permission." },
|
| + "windowTypes": {"type": "array", "items": { "$ref": "WindowType" }, "optional": true, "description": "If set, the $(ref:windows.Window) returned will be filtered based on its type. If unset the default filter is set to <code>['normal', 'panel', 'popup']</code>." }
|
| }
|
| },
|
| {
|
| @@ -103,7 +104,8 @@
|
| "optional": true,
|
| "description": "",
|
| "properties": {
|
| - "populate": {"type": "boolean", "optional": true, "description": "If true, the $(ref:windows.Window) object will have a <var>tabs</var> property that contains a list of the $(ref:tabs.Tab) objects. The <code>Tab</code> objects only contain the <code>url</code>, <code>title</code> and <code>favIconUrl</code> properties if the extension's manifest file includes the <code>\"tabs\"</code> permission." }
|
| + "populate": {"type": "boolean", "optional": true, "description": "If true, the $(ref:windows.Window) object will have a <var>tabs</var> property that contains a list of the $(ref:tabs.Tab) objects. The <code>Tab</code> objects only contain the <code>url</code>, <code>title</code> and <code>favIconUrl</code> properties if the extension's manifest file includes the <code>\"tabs\"</code> permission." },
|
| + "windowTypes": {"type": "array", "items": { "$ref": "WindowType" }, "optional": true, "description": "If set, the $(ref:windows.Window) returned will be filtered based on its type. If unset the default filter is set to <code>['normal', 'panel', 'popup']</code>." }
|
| }
|
| },
|
| {
|
| @@ -128,7 +130,8 @@
|
| "optional": true,
|
| "description": "",
|
| "properties": {
|
| - "populate": {"type": "boolean", "optional": true, "description": "If true, the $(ref:windows.Window) object will have a <var>tabs</var> property that contains a list of the $(ref:tabs.Tab) objects. The <code>Tab</code> objects only contain the <code>url</code>, <code>title</code> and <code>favIconUrl</code> properties if the extension's manifest file includes the <code>\"tabs\"</code> permission." }
|
| + "populate": {"type": "boolean", "optional": true, "description": "If true, the $(ref:windows.Window) object will have a <var>tabs</var> property that contains a list of the $(ref:tabs.Tab) objects. The <code>Tab</code> objects only contain the <code>url</code>, <code>title</code> and <code>favIconUrl</code> properties if the extension's manifest file includes the <code>\"tabs\"</code> permission." },
|
| + "windowTypes": {"type": "array", "items": { "$ref": "WindowType" }, "optional": true, "description": "If set, the $(ref:windows.Window) returned will be filtered based on its type. If unset the default filter is set to <code>['normal', 'panel', 'popup']</code>." }
|
| }
|
| },
|
| {
|
| @@ -153,7 +156,8 @@
|
| "optional": true,
|
| "description": "",
|
| "properties": {
|
| - "populate": {"type": "boolean", "optional": true, "description": "If true, each $(ref:windows.Window) object will have a <var>tabs</var> property that contains a list of the $(ref:tabs.Tab) objects for that window. The <code>Tab</code> objects only contain the <code>url</code>, <code>title</code> and <code>favIconUrl</code> properties if the extension's manifest file includes the <code>\"tabs\"</code> permission." }
|
| + "populate": {"type": "boolean", "optional": true, "description": "If true, each $(ref:windows.Window) object will have a <var>tabs</var> property that contains a list of the $(ref:tabs.Tab) objects for that window. The <code>Tab</code> objects only contain the <code>url</code>, <code>title</code> and <code>favIconUrl</code> properties if the extension's manifest file includes the <code>\"tabs\"</code> permission." },
|
| + "windowTypes": {"type": "array", "items": { "$ref": "WindowType" }, "optional": true, "description": "If set, the $(ref:windows.Window) returned will be filtered based on its type. If unset the default filter is set to <code>['normal', 'panel', 'popup']</code>." }
|
| }
|
| },
|
| {
|
| @@ -267,6 +271,14 @@
|
| "name": "onCreated",
|
| "type": "function",
|
| "description": "Fired when a window is created.",
|
| + "filters": [
|
| + {
|
| + "name": "windowTypes",
|
| + "type": "array",
|
| + "items": { "$ref": "WindowType" },
|
| + "description": "Conditions that the window's type being created must satisfy. By default it will satisfy <code>['normal', 'panel', 'popup']</code>."
|
| + }
|
| + ],
|
| "parameters": [
|
| {
|
| "$ref": "Window",
|
| @@ -279,6 +291,14 @@
|
| "name": "onRemoved",
|
| "type": "function",
|
| "description": "Fired when a window is removed (closed).",
|
| + "filters": [
|
| + {
|
| + "name": "windowTypes",
|
| + "type": "array",
|
| + "items": { "$ref": "WindowType" },
|
| + "description": "Conditions that the window's type being removed must satisfy. By default it will satisfy <code>['normal', 'panel', 'popup']</code>."
|
| + }
|
| + ],
|
| "parameters": [
|
| {"type": "integer", "name": "windowId", "minimum": 0, "description": "ID of the removed window."}
|
| ]
|
| @@ -287,6 +307,14 @@
|
| "name": "onFocusChanged",
|
| "type": "function",
|
| "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.",
|
| + "filters": [
|
| + {
|
| + "name": "windowTypes",
|
| + "type": "array",
|
| + "items": { "$ref": "WindowType" },
|
| + "description": "Conditions that the window's type being removed must satisfy. By default it will satisfy <code>['normal', 'panel', 'popup']</code>."
|
| + }
|
| + ],
|
| "parameters": [
|
| {"type": "integer", "name": "windowId", "minimum": -1, "description": "ID of the newly focused window."}
|
| ]
|
|
|