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

Unified Diff: device/vr/vr_device.h

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: Fix typo of Event reason Created 4 years, 3 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.h
diff --git a/device/vr/vr_device.h b/device/vr/vr_device.h
index 632aec5a5c19498c7897339fe08af51e4c07e008..4d43e086b07b2fb5abfb9feb1406dfc54a10941a 100644
--- a/device/vr/vr_device.h
+++ b/device/vr/vr_device.h
@@ -6,6 +6,7 @@
#define DEVICE_VR_VR_DEVICE_H
#include "base/macros.h"
+#include "device/vr/vr_client_dispatcher.h"
#include "device/vr/vr_export.h"
#include "device/vr/vr_service.mojom.h"
@@ -29,14 +30,19 @@ class VRDevice {
DEVICE_VR_EXPORT virtual ~VRDevice();
DEVICE_VR_EXPORT VRDeviceProvider* provider() const { return provider_; }
+ DEVICE_VR_EXPORT VRClientDispatcher* client() const { return client_; }
DEVICE_VR_EXPORT unsigned int id() const { return id_; }
virtual VRDisplayPtr GetVRDevice() = 0;
virtual VRPosePtr GetPose() = 0;
virtual void ResetPose() = 0;
+ virtual void PollEvents() = 0;
bajones 2016/09/06 23:25:46 As I'm looking through this code it occurs to me t
shaobo.yan 2016/09/07 02:45:50 I'll move client_ from VRDevice to VRDeviceProvide
+
+ void SetClient(VRClientDispatcher* client) { client_ = client; }
private:
VRDeviceProvider* provider_;
+ VRClientDispatcher* client_;
unsigned int id_;
static unsigned int next_id_;

Powered by Google App Engine
This is Rietveld 408576698