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

Unified Diff: device/vr/vr_device_manager.h

Issue 2783993002: Send vrdisplayactivate to the most recently focused navigator listening for displayactivate. (Closed)
Patch Set: Created 3 years, 9 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 | « 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 718b3f10d0c660d7fc09c5bdc955e392b8efccb2..fa157504ca1ef489232c3320c4e668d07d115e61 100644
--- a/device/vr/vr_device_manager.h
+++ b/device/vr/vr_device_manager.h
@@ -43,7 +43,9 @@ class VRDeviceManager {
DEVICE_VR_EXPORT unsigned int GetNumberOfConnectedDevices();
- void ListeningForActivateChanged(bool listening);
+ void ListeningForActivateChanged(bool listening, VRServiceImpl* service);
+
+ bool IsMostRecentlyListeningForActivate(VRServiceImpl* service);
private:
friend class VRDeviceManagerTest;
@@ -77,6 +79,7 @@ class VRDeviceManager {
bool vr_initialized_;
std::set<VRServiceImpl*> services_;
+ VRServiceImpl* most_recently_listening_for_activate_ = nullptr;
// For testing. If true will not delete self when consumer count reaches 0.
bool keep_alive_;
« 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