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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java

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
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
index ed98793eb158000bb485305bc3d2d4ab7ca7c919..5eae53af461b4953e6dd818f95b0c6636a10e0cf 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellDelegate.java
@@ -83,6 +83,7 @@ public class VrShellDelegate {
private Tab mTab;
private boolean mRequestedWebVR;
private long mLastVRExit;
+ private boolean mListeningForWebVrActivate;
public VrShellDelegate(ChromeTabbedActivity activity) {
mActivity = activity;
@@ -387,6 +388,11 @@ public class VrShellDelegate {
mNonPresentingGvrContext = null;
}
+ @CalledByNative
+ private void setListeningForWebVrActivate(boolean listening) {
+ mListeningForWebVrActivate = listening;
+ }
+
/**
* Exits VR Shell, performing all necessary cleanup.
*/
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698