Chromium Code Reviews| 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 = []; |