| Index: chrome/common/extensions/api/tabs.json
|
| ===================================================================
|
| --- chrome/common/extensions/api/tabs.json (revision 142698)
|
| +++ chrome/common/extensions/api/tabs.json (working copy)
|
| @@ -19,7 +19,7 @@
|
| "highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."},
|
| "active": {"type": "boolean", "description": "Whether the tab is active in its window."},
|
| "pinned": {"type": "boolean", "description": "Whether the tab is pinned."},
|
| - "url": {"type": "string", "description": "The URL the tab is displaying."},
|
| + "url": {"type": "string", "optional": true, "description": "The URL the tab is displaying."},
|
| "title": {"type": "string", "optional": true, "description": "The title of the tab. This may not be available if the tab is loading."},
|
| "favIconUrl": {"type": "string", "optional": true, "description": "The URL of the tab's favicon. This may not be available if the tab is loading."},
|
| "status": {"type": "string", "optional": true, "description": "Either <em>loading</em> or <em>complete</em>."},
|
| @@ -258,6 +258,32 @@
|
| ]
|
| },
|
| {
|
| + "name": "duplicate",
|
| + "type": "function",
|
| + "description": "Duplicates a tab. Note: This function can be used without requesting the 'tabs' permission in the manifest.",
|
| + "parameters": [
|
| + {
|
| + "type": "integer",
|
| + "name": "tabId",
|
| + "minimum": 0,
|
| + "description": "The ID of the tab which is to be duplicated."
|
| + },
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "optional": true,
|
| + "parameters": [
|
| + {
|
| + "name": "tab",
|
| + "optional": true,
|
| + "description": "Details about the duplicated tab. The Tab object doesn't contain url, title and faviconUrl if the 'tabs' permission has not been requested.",
|
| + "$ref": "Tab"
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| + },
|
| + {
|
| "name": "query",
|
| "type": "function",
|
| "description": "Gets all tabs that have the specified properties, or all tabs if no properties are specified.",
|
|
|