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

Unified Diff: device/vr/vr_device_manager.h

Issue 2746233002: Fixes 2D-to-WebVR site transitions when browsing in VR. (Closed)
Patch Set: Fixed export 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/vr_device.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 202cd847b6bb9c7d0d54c6f97bf9abe596e1ada2..718b3f10d0c660d7fc09c5bdc955e392b8efccb2 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.
- void AddService(VRServiceImpl* service);
+ // Automatically connects all currently available VR devices by querying
+ // the device providers and, for each returned device, calling
+ // VRServiceImpl::ConnectDevice.
+ DEVICE_VR_EXPORT 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);
« no previous file with comments | « device/vr/vr_device.cc ('k') | device/vr/vr_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698