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

Unified Diff: device/vr/vr_device.h

Issue 2317483002: Add support of vrdisplayconnect and vrdisplaydisconnect event (Closed)
Patch Set: Address most comments from bajones@ 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 6c5b0500f7b430b7f1ce1f0e6b32bd5c506dc062..81823678b253b05271d76bcc51434c75bcc32f11 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"
@@ -34,6 +35,9 @@ class VRDevice {
virtual VRDisplayPtr GetVRDevice() = 0;
virtual VRPosePtr GetPose() = 0;
virtual void ResetPose() = 0;
+ virtual void PollEvents(VRClientDispatcher* client) = 0;
+
+ virtual void UpdateConnectionStatus(bool isConnected) {}
virtual void RequestPresent(){};
virtual void ExitPresent(){};

Powered by Google App Engine
This is Rietveld 408576698