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

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

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/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..cacc5064f7129b68042863cc16ccec3fc6e0e106 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(static_cast<vr_shell::UiAction>(action), arguments);
}
}
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui_api.js ('k') | chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698