| Index: chrome/common/extensions/api/tabs.json
|
| diff --git a/chrome/common/extensions/api/tabs.json b/chrome/common/extensions/api/tabs.json
|
| index 637f3c0d3a385459ffd13c96c677085820b0d783..fbbc055e1ee989d41571d3dbf7225aa4f98aa161 100644
|
| --- a/chrome/common/extensions/api/tabs.json
|
| +++ b/chrome/common/extensions/api/tabs.json
|
| @@ -907,6 +907,34 @@
|
| ]
|
| }
|
| ]
|
| + },
|
| + {
|
| + "name": "discard",
|
| + "type": "function",
|
| + "description": "Discards a tab from memory. Discarded tabs are still visible on the tab strip and are reloaded when activated.",
|
| + "parameters": [
|
| + {
|
| + "type": "integer",
|
| + "name": "tabId",
|
| + "optional": true,
|
| + "minimum": 0,
|
| + "description": "The ID of the tab to be discarded. If specified, the tab will be discarded unless it's active or already discarded. If omitted, the browser will discard the least important tab. This can fail if no discardable tabs exist."
|
| + },
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "optional": true,
|
| + "description": "Called after the operation is completed.",
|
| + "parameters": [
|
| + {
|
| + "name": "tab",
|
| + "$ref": "Tab",
|
| + "optional": true,
|
| + "description": "Discarded tab if it was successfully discarded. Undefined otherwise."
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| }
|
| ],
|
| "events": [
|
|
|