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

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

Issue 2867783002: 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 5d4f55aefcfd060fa6f1a8170ba75d20015504fc..7ae408e94ae49e493ac1ab67ba79ca0c1792d6a7 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc
@@ -185,11 +185,8 @@ void UiSceneManager::SetWebVRSecureOrigin(bool secure) {
}
void UiSceneManager::OnAppButtonClicked() {
- // 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_);
+ // App button click exits the WebVR presentation.
+ browser_->ExitPresent();
cjgrant 2017/05/08 15:29:40 The UI should know it's presenting WebVR. But I g
amp 2017/05/08 17:48:13 What happens when you press the app button in vr s
tiborg 2017/05/08 18:59:37 cjgrant@: I think it is better to let the delegate
amp 2017/05/08 19:55:22 Yes exiting full screen is what I had in mind. Al
tiborg 2017/05/08 20:14:01 Yeah, exiting fullscreen should be very easy. What
amp 2017/05/08 20:37:02 Follow up cl is fine. We will need to wire up the
}
void UiSceneManager::ConfigureSecurityWarnings() {
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.h ('k') | chrome/browser/android/vr_shell/vr_browser_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698