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

Unified Diff: device/vr/vr_device_manager.h

Issue 2746233002: Fixes 2D-to-WebVR site transitions when browsing in VR. (Closed)
Patch Set: nit 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
Index: device/vr/vr_device_manager.h
diff --git a/device/vr/vr_device_manager.h b/device/vr/vr_device_manager.h
index 202cd847b6bb9c7d0d54c6f97bf9abe596e1ada2..3ed6f6c37bc4bc1779d49b034fc9d9fefae0f9e0 100644
--- a/device/vr/vr_device_manager.h
+++ b/device/vr/vr_device_manager.h
@@ -24,6 +24,8 @@
namespace device {
+// Singleton used to provide the platform's VR devices to VRServiceImpl
+// instances.
class VRDeviceManager {
public:
DEVICE_VR_EXPORT virtual ~VRDeviceManager();
@@ -33,10 +35,12 @@ class VRDeviceManager {
// Adds a listener for device manager events. VRDeviceManager does not own
// this object.
+ // Automatically connects all currently available VR devices by querying
+ // the device providers and, for each returned device, calling
+ // VRServiceImpl::ConnectDevice.
void AddService(VRServiceImpl* service);
void RemoveService(VRServiceImpl* service);
- DEVICE_VR_EXPORT bool GetVRDevices(VRServiceImpl* service);
DEVICE_VR_EXPORT unsigned int GetNumberOfConnectedDevices();
void ListeningForActivateChanged(bool listening);

Powered by Google App Engine
This is Rietveld 408576698