Chromium Code Reviews| Index: chrome/renderer/resources/extension_process_bindings.js |
| =================================================================== |
| --- chrome/renderer/resources/extension_process_bindings.js (revision 97767) |
| +++ chrome/renderer/resources/extension_process_bindings.js (working copy) |
| @@ -1007,6 +1007,26 @@ |
| return newArgs; |
| }; |
| + apiFunctions["experimental.offscreenTabs.sendMouseEvent"]. |
| + 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]; |
| + |
| + return arguments; |
| + }; |
| + |
| + apiFunctions["experimental.offscreenTabs.sendKeyboardEvent"]. |
| + updateArgumentsPreValidate = function() { |
|
Ken Russell (switch to Gerrit)
2011/08/23 22:46:53
Actually, you can write this as: apiFunctions["exp
alexbost
2011/08/24 20:06:21
Done.
|
| + // 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]; |
| + |
| + return arguments; |
| + }; |
| + |
| apiFunctions["omnibox.sendSuggestions"].updateArgumentsPostValidate = |
| function(requestId, userSuggestions) { |
| var suggestions = []; |