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

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

Issue 7720002: Chrome Extensions chrome.experimental.offscreenTabs.* API implementation, docs, and test. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 3 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 101324)
+++ chrome/renderer/resources/extension_process_bindings.js (working copy)
@@ -1020,6 +1020,23 @@
return newArgs;
};
+ apiFunctions["experimental.offscreenTabs.sendKeyboardEvent"].
+ updateArgumentsPreValidate = function() {
+ // Delete properties that are objects in order to be able to serialize.
+ var arg1 = arguments[1];
+
+ for (prop in arg1)
jstritar 2011/09/16 16:03:50 nit: not required but might be easier to read to u
alexbost 2011/09/16 20:18:14 Done.
+ if (typeof arg1[prop] == "object")
+ delete arg1[prop];
+
+ return arguments;
+ };
+
+ apiFunctions["experimental.offscreenTabs.sendMouseEvent"].
+ updateArgumentsPreValidate =
+ apiFunctions["experimental.offscreenTabs.sendKeyboardEvent"].
+ updateArgumentsPreValidate;
jstritar 2011/09/16 16:03:50 apiFunctions["experimental.offscreenTabs.sendMouse
alexbost 2011/09/16 20:18:14 Done.
+
apiFunctions["omnibox.sendSuggestions"].updateArgumentsPostValidate =
function(requestId, userSuggestions) {
var suggestions = [];

Powered by Google App Engine
This is Rietveld 408576698