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

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

Issue 2872143002: VrShell: Exit fullscreen on app button press. (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
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e617824e72653d7d8d1d933655fc7ac35fc2c26a..cbed5626fd00fec52084b839f26ec449575ea0af 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc
@@ -225,6 +225,7 @@ void UiSceneManager::OnAppButtonClicked() {
content_rendering_enabled_ = !content_rendering_enabled_;
scene_->SetWebVrRenderingEnabled(content_rendering_enabled_);
browser_->OnContentPaused(!content_rendering_enabled_);
+ browser_->ExitFullscreen();
tiborg 2017/05/10 15:18:50 What happens if you exit fullscreen on a presentin
amp 2017/05/10 15:40:08 It will check if the web contents are fullscreened
tiborg 2017/05/10 15:48:43 I thought WebVR presentation includes being in ful
amp 2017/05/10 16:15:01 I just verified with this patch (your comment was
tiborg 2017/05/10 17:01:44 No, this confirmed this reasonable well. FYI, crre
}
void UiSceneManager::OnAppButtonGesturePerformed(
« no previous file with comments | « no previous file | 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