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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.cc

Issue 2437823002: Control visibility of 2D VR menu buttons using native state. (Closed)
Patch Set: Address nits. Created 4 years, 2 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 | « no previous file | chrome/browser/resources/vr_shell/vr_shell_ui.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
index e024aab4dc8ab5b8ebf32e1dfde3d5f858db1463..d4e5cf2979ce60cb9f8dd5a9767d9ea2c4fe6b1f 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -762,8 +762,10 @@ void VrShell::SetWebVrMode(JNIEnv* env,
int64_t now = gvr::GvrApi::GetTimePointNow().monotonic_system_time_nanos;
constexpr int64_t seconds_to_nanos = 1000 * 1000 * 1000;
webvr_warning_end_nanos_ = now + kWebVrWarningSeconds * seconds_to_nanos;
+ html_interface_->SetMode(UiInterface::Mode::WEB_VR);
} else {
webvr_warning_end_nanos_ = 0;
+ html_interface_->SetMode(UiInterface::Mode::STANDARD);
}
}
« no previous file with comments | « no previous file | chrome/browser/resources/vr_shell/vr_shell_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698