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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.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
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 a726bc4f4120060b0324ee8f1cc000e5acef0ea8..f3893bc3971a9ed43a0422d3e5e5abbf096f84d6 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -492,6 +492,12 @@ void VrShell::ForceExitVr() {
Java_VrShellImpl_forceExitVr(env, j_vr_shell_.obj());
}
+void VrShell::ExitFullscreen() {
+ if (web_contents_ && web_contents_->IsFullscreen()) {
+ web_contents_->ExitFullscreen(false);
+ }
+}
+
void VrShell::OnVRVsyncProviderRequest(
device::mojom::VRVSyncProviderRequest request) {
PostToGlThreadWhenReady(base::Bind(&VrShellGl::OnRequest,

Powered by Google App Engine
This is Rietveld 408576698