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

Unified Diff: device/vr/vr_device_manager.h

Issue 2537403004: Notify VRDeviceProviders when there are pages listening for vrdisplayactivate (Closed)
Patch Set: Created 4 years 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 | « device/vr/android/gvr/gvr_device_provider.cc ('k') | device/vr/vr_device_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_device_manager.h
diff --git a/device/vr/vr_device_manager.h b/device/vr/vr_device_manager.h
index 4417470d8fecd9ca06ef708baf9b7e4573c4abf8..f26791708e0d9554111087a1db268802507bf519 100644
--- a/device/vr/vr_device_manager.h
+++ b/device/vr/vr_device_manager.h
@@ -39,6 +39,8 @@ class VRDeviceManager {
DEVICE_VR_EXPORT bool GetVRDevices(VRServiceImpl* service);
DEVICE_VR_EXPORT unsigned int GetNumberOfConnectedDevices();
+ void ListeningForActivateChanged(bool listening);
+
private:
friend class VRDeviceManagerTest;
friend class VRServiceImplTest;
@@ -77,6 +79,8 @@ class VRDeviceManager {
bool has_scheduled_poll_;
+ bool has_activate_listeners_;
+
base::ThreadChecker thread_checker_;
base::RepeatingTimer timer_;
« no previous file with comments | « device/vr/android/gvr/gvr_device_provider.cc ('k') | device/vr/vr_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698