Chromium Code Reviews| 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..3306b476dfeecf7e18d0c4e1b7b2eba03cc9e4d9 100644 |
| --- a/chrome/common/extensions/api/tabs.json |
| +++ b/chrome/common/extensions/api/tabs.json |
| @@ -907,6 +907,38 @@ |
| ] |
| } |
| ] |
| + }, |
| + { |
| + "name": "discard", |
| + "type": "function", |
| + "description": "Discards a tab from memory. Discarded tabs are still visible on the tab strip and get reloaded when activated.", |
|
Devlin
2016/07/21 15:39:21
nit: s/get reloaded/are reloaded
I also wonder if
Anderson Silva
2016/07/21 20:43:04
Reloaded is what we've always been using, so we ar
Georges Khalil
2016/07/21 21:02:23
We can definitely revisit the "reload" terminology
|
| + "parameters": [ |
| + { |
| + "type": "integer", |
| + "name": "tabId", |
| + "optional": true, |
| + "minimum": 0, |
| + "description": "The ID of the tab to be discarded; defaults to the least important tab." |
| + }, |
| + { |
| + "type": "function", |
| + "name": "callback", |
| + "optional": true, |
| + "description": "Called after the operation is completed.", |
| + "parameters": [ |
| + { |
| + "name": "tab", |
| + "$ref": "Tab", |
| + "description": "Discarded tab if it was successfully discarded." |
|
Devlin
2016/07/21 15:39:21
Tying into the comment in the api.cc file, could t
Anderson Silva
2016/07/21 20:43:04
Solved by removing the boolean and by returning un
|
| + }, |
| + { |
| + "name": "success", |
| + "type": "boolean", |
| + "description": "Status describing if the tab was successfully discarded or not." |
| + } |
| + ] |
| + } |
| + ] |
| } |
| ], |
| "events": [ |