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

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

Issue 2510993002: Notify VRDeviceProviders when there are pages listening for vrdisplayactivate (Closed)
Patch Set: Rebase Created 4 years, 1 month 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_delegate.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_delegate.cc b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
index cd01c36309d3b1f1be210be0c199200019a69616..d9881716965e878ed6358273df00e9c6c1015f34 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
@@ -108,6 +108,12 @@ void VrShellDelegate::DestroyNonPresentingDelegate() {
}
}
+void VrShellDelegate::SetListeningForActivate(bool listening) {
+ JNIEnv* env = AttachCurrentThread();
+ Java_VrShellDelegate_setListeningForWebVrActivate(
+ env, j_vr_shell_delegate_.obj(), listening);
+}
+
// ----------------------------------------------------------------------------
// Native JNI methods
// ----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698