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

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

Issue 2876743002: Reland of 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.h ('k') | chrome/browser/android/vr_shell/vr_shell_delegate.cc » ('j') | 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 c1e7abfbe538bf7aec5a199cad6713374f001f49..e6b7c03fa09fffb402dac93a61041dfbb51a6428 100644
--- a/chrome/browser/android/vr_shell/vr_shell.cc
+++ b/chrome/browser/android/vr_shell/vr_shell.cc
@@ -425,9 +425,6 @@
const base::DictionaryValue* arguments) {
// Actions that can be handled natively.
switch (action) {
- case EXIT_PRESENT:
- delegate_provider_->ExitWebVRPresent();
- return;
default:
break;
}
@@ -487,6 +484,10 @@
Java_VrShellImpl_forceExitVr(env, j_vr_shell_.obj());
}
+void VrShell::ExitPresent() {
+ delegate_provider_->ExitWebVRPresent();
+}
+
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') | chrome/browser/android/vr_shell/vr_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698