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

Unified Diff: chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc

Issue 2647053002: Add initial VR interactive omnibox. (Closed)
Patch Set: Rebase to ToT. 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
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui_api.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc
diff --git a/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc b/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc
index 64774efbc464a46fd6b244df210bb11cee15bca9..0ac26dad90e4a5692b709a7fa845977fcdbd74af 100644
--- a/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc
+++ b/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc
@@ -63,9 +63,11 @@ void VrShellUIMessageHandler::HandleUpdateScene(const base::ListValue* args) {
void VrShellUIMessageHandler::HandleDoAction(const base::ListValue* args) {
int action;
+ const base::DictionaryValue* arguments = nullptr;
CHECK(args->GetInteger(0, &action));
+ args->GetDictionary(1, &arguments);
if (vr_shell_) {
- vr_shell_->DoUiAction((vr_shell::UiAction) action);
+ vr_shell_->DoUiAction((vr_shell::UiAction) action, arguments);
}
}
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui_api.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698