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

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui_api.js

Issue 2661823002: NOT FOR REVIEW: A set of patches for Josh to work on top of. (Closed)
Patch Set: Created 3 years, 11 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/browser/resources/vr_shell/vr_shell_ui_api.js
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
index bc1709cd4bd3ff9a34600aa25d5b4e42db934e23..0a91d5955c565242b45330aa2c53dd3367706fd7 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js
@@ -66,6 +66,9 @@ api.Action = {
'ZOOM_OUT': 3,
'ZOOM_IN': 4,
'RELOAD_UI': 5,
+ 'KEY_EVENT': 6,
+ 'LOAD_URL': 7,
+ 'OMNIBOX_CONTENT': 8,
};
/**
@@ -82,9 +85,10 @@ api.Mode = {
/**
* Triggers an Action.
* @param {api.Action} action
+ * @param {Object} parameters
*/
-api.doAction = function(action) {
- chrome.send('doAction', [action]);
+api.doAction = function(action, parameters) {
+ chrome.send('doAction', [action, parameters]);
};
/**
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698