Chromium Code Reviews| Index: chrome/common/extensions/api/tabs.json |
| =================================================================== |
| --- chrome/common/extensions/api/tabs.json (revision 142698) |
| +++ chrome/common/extensions/api/tabs.json (working copy) |
| @@ -258,6 +258,35 @@ |
| ] |
| }, |
| { |
| + "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, or the ID of the duplicate tab if the 'tabs' permission has not been requested.", |
| + "choices": [ |
| + {"type": "integer", "name": "tabId"}, |
|
Aaron Boodman
2012/07/05 18:14:44
On second thought, I would prefer to return a Tab
SanjoyPal
2012/07/10 08:51:09
Done.
|
| + {"$ref": "Tab", "name": "tab"} |
| + ] |
| + } |
| + ] |
| + } |
| + ] |
| + }, |
| + { |
| "name": "query", |
| "type": "function", |
| "description": "Gets all tabs that have the specified properties, or all tabs if no properties are specified.", |