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

Unified Diff: chrome/browser/android/vr_shell/vr_gl_thread.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_gl_thread.cc
diff --git a/chrome/browser/android/vr_shell/vr_gl_thread.cc b/chrome/browser/android/vr_shell/vr_gl_thread.cc
index e7cafaa8e96ec39bd57346bdbc5e9e1aa41db888..4503a8c84989d1025a0a3f26ad2a1f40aad647f2 100644
--- a/chrome/browser/android/vr_shell/vr_gl_thread.cc
+++ b/chrome/browser/android/vr_shell/vr_gl_thread.cc
@@ -86,6 +86,11 @@ void VrGLThread::ForceExitVr() {
FROM_HERE, base::Bind(&VrShell::ForceExitVr, weak_vr_shell_));
}
+void VrGLThread::ExitFullscreen() {
+ main_thread_task_runner_->PostTask(
+ FROM_HERE, base::Bind(&VrShell::ExitFullscreen, weak_vr_shell_));
+}
+
void VrGLThread::RunVRDisplayInfoCallback(
const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback,
device::mojom::VRDisplayInfoPtr* info) {

Powered by Google App Engine
This is Rietveld 408576698