Index: Source/modules/vr/HMDVRDevice.h |
diff --git a/Source/modules/vr/HMDVRDevice.h b/Source/modules/vr/HMDVRDevice.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c70a1c71db1648d72e77b73dc4556067492a3745 |
--- /dev/null |
+++ b/Source/modules/vr/HMDVRDevice.h |
@@ -0,0 +1,45 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef HMDVRDevice_h |
+#define HMDVRDevice_h |
+ |
+#include "modules/vr/VRDevice.h" |
+#include "modules/vr/VREyeParameters.h" |
+#include "platform/heap/Handle.h" |
+#include "public/platform/WebVR.h" |
+#include "wtf/Forward.h" |
+#include "wtf/text/WTFString.h" |
+ |
+namespace blink { |
+ |
+class VRPoint3D; |
+class VRFieldOfView; |
+class VRRect; |
+ |
+class HMDVRDevice final : public VRDevice { |
+ DEFINE_WRAPPERTYPEINFO(); |
+public: |
+ explicit HMDVRDevice(VRHardwareUnit*); |
+ |
+ typedef Vector<double> DoubleVector; |
esprehn
2015/06/22 22:05:27
unused?
|
+ |
+ virtual void updateFromWebVRDevice(const WebVRDevice&) override; |
+ |
+ VREyeParameters* getEyeParameters(const String&); |
+ void setFieldOfView(VRFieldOfView* leftFov = 0, VRFieldOfView* rightFov = 0); |
+ |
+ virtual void trace(Visitor*) override; |
+ |
+private: |
+ static VREye StringToVREye(const String&); |
esprehn
2015/06/22 22:05:27
lowerCaseNames.
|
+ |
+ Member<VREyeParameters> m_eyeParametersLeft; |
+ Member<VREyeParameters> m_eyeParametersRight; |
+ bool m_dirtyFov; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // HMDVRDevice_h |