Chromium Code Reviews| Index: chrome/renderer/resources/extension_process_bindings.js |
| =================================================================== |
| --- chrome/renderer/resources/extension_process_bindings.js (revision 20805) |
| +++ chrome/renderer/resources/extension_process_bindings.js (working copy) |
| @@ -27,6 +27,7 @@ |
| native function UpdateTab(); |
| native function MoveTab(); |
| native function RemoveTab(); |
| + native function GetVisibleTabCapture(); |
| native function GetTabLanguage(); |
| native function EnablePageAction(); |
| native function DisablePageAction(); |
| @@ -318,6 +319,16 @@ |
| chrome.types.optFun |
| ]; |
| + chrome.tabs.getVisibleTabCapture = function(windowId, callback) { |
|
Aaron Boodman
2009/07/30 18:15:12
Shouldn't this be in api.json now?
Aaron Boodman
2009/07/30 18:15:12
Can we change the name to captureVisibleTab()?
|
| + validate(arguments, arguments.callee.params); |
| + sendRequest(GetVisibleTabCapture, windowId, callback); |
| + }; |
| + |
| + chrome.tabs.getVisibleTabCapture.params = [ |
| + chrome.types.optPInt, |
| + chrome.types.fun |
| + ]; |
| + |
| chrome.tabs.getLanguage = function(tabId, callback) { |
| validate(arguments, arguments.callee.params); |
| sendRequest(GetTabLanguage, tabId, callback); |