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

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, 4 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 98087)
+++ chrome/renderer/resources/extension_process_bindings.js (working copy)
@@ -1007,6 +1007,21 @@
return newArgs;
};
+ apiFunctions["experimental.offscreenTabs.sendKeyboardEvent"].
+ updateArgumentsPreValidate = function() {
+ // Delete properties that are objects in order to be able to serialize
+ for (prop in arguments[1])
+ if (typeof arguments[1][prop] == "object")
+ delete arguments[1][prop];
Ken Russell (switch to Gerrit) 2011/08/26 00:57:48 How about using a local variable for arguments[1]?
alexbost 2011/08/26 22:07:23 Done.
+
+ return arguments;
+ };
+
+ apiFunctions["experimental.offscreenTabs.sendMouseEvent"].
+ updateArgumentsPreValidate =
+ apiFunctions["experimental.offscreenTabs.sendKeyboardEvent"].
+ updateArgumentsPreValidate;
+
apiFunctions["omnibox.sendSuggestions"].updateArgumentsPostValidate =
function(requestId, userSuggestions) {
var suggestions = [];

Powered by Google App Engine
This is Rietveld 408576698