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

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') | device/vr/vr_service.mojom » ('J')
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 bea4861e16ca4a7407a987c0709897a0757c474d..13226dd440dfdf1dc1dc54db2e6defa93654dbf7 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
@@ -77,6 +77,7 @@ public class VrShellDelegate {
private Tab mTab;
private boolean mRequestedWebVR;
private long mLastVRExit;
+ private boolean mListeningForWebVrActivate;
public VrShellDelegate(ChromeTabbedActivity activity) {
mActivity = activity;
@@ -366,6 +367,11 @@ public class VrShellDelegate {
mNonPresentingGvrContext = null;
}
+ @CalledByNative
+ private void setListeningForWebVrActivate(boolean listening) {
+ mListeningForWebVrActivate = listening;
dcheng 2016/11/17 19:08:04 is this write-only? Will it be used in a followup?
bajones 2016/11/17 19:23:28 Yes, the intent is to use it in a followup. (Needs
+ }
+
/**
* 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') | device/vr/vr_service.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698