Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8220)

Unified Diff: chrome/renderer/resources/extension_process_bindings.js

Issue 144019: Functionality has been requested in the Extension API for Javascript to... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698