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

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

Issue 2872143002: VrShell: Exit fullscreen on app button press. (Closed)
Patch Set: update app button test 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 | « chrome/browser/android/vr_shell/vr_shell.h ('k') | no next file » | 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 e6b7c03fa09fffb402dac93a61041dfbb51a6428..37ed0ccaec4137e5176f744a529956425dc16d8c 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -488,6 +488,12 @@ void VrShell::ExitPresent() {
delegate_provider_->ExitWebVRPresent();
}
+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,
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698