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

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 101582)
+++ chrome/renderer/resources/extension_process_bindings.js (working copy)
@@ -1025,6 +1025,24 @@
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) {
+ if (typeof arg1[prop] == "object")
+ delete arg1[prop];
+ }
+
+ return arguments;
+ };
+
+ apiFunctions["experimental.offscreenTabs.sendMouseEvent"].
+ updateArgumentsPreValidate =
+ apiFunctions["experimental.offscreenTabs.sendKeyboardEvent"].
+ updateArgumentsPreValidate;
+
apiFunctions["omnibox.sendSuggestions"].updateArgumentsPostValidate =
function(requestId, userSuggestions) {
var suggestions = [];
« no previous file with comments | « chrome/common/extensions/docs/samples.json ('k') | chrome/renderer/resources/renderer_extension_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698