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

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

Issue 2874103003: Revert of App button click exits WebVR presentation. (Closed)
Patch Set: Created 3 years, 7 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/android/vr_shell/ui_scene_manager.cc
diff --git a/chrome/browser/android/vr_shell/ui_scene_manager.cc b/chrome/browser/android/vr_shell/ui_scene_manager.cc
index e59a59a32d9bff92d16b95e437a593c2d6dca1e1..857d4d2eb59e1b0d48aa790947a17793b7cbfcfe 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc
@@ -223,8 +223,11 @@
}
void UiSceneManager::OnAppButtonClicked() {
- // App button click exits the WebVR presentation.
- browser_->ExitPresent();
+ // Pressing the app button currenly pauses content rendering. Note: its still
+ // unclear what we want to do here and this will most likely change.
+ content_rendering_enabled_ = !content_rendering_enabled_;
+ scene_->SetWebVrRenderingEnabled(content_rendering_enabled_);
+ browser_->OnContentPaused(!content_rendering_enabled_);
}
void UiSceneManager::OnAppButtonGesturePerformed(
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.h ('k') | chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698