| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VRPose_h | 5 #ifndef VRPose_h |
| 6 #define VRPose_h | 6 #define VRPose_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/dom/DOMTypedArray.h" | 9 #include "core/dom/DOMTypedArray.h" |
| 10 #include "device/vr/vr_service.mojom-blink.h" | 10 #include "device/vr/vr_service.mojom-blink.h" |
| 11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
| 12 #include "wtf/Forward.h" | 12 #include "platform/wtf/Forward.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class VRPose final : public GarbageCollected<VRPose>, public ScriptWrappable { | 16 class VRPose final : public GarbageCollected<VRPose>, public ScriptWrappable { |
| 17 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
| 18 | 18 |
| 19 public: | 19 public: |
| 20 static VRPose* Create() { return new VRPose(); } | 20 static VRPose* Create() { return new VRPose(); } |
| 21 | 21 |
| 22 DOMFloat32Array* orientation() const { return orientation_; } | 22 DOMFloat32Array* orientation() const { return orientation_; } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 Member<DOMFloat32Array> position_; | 37 Member<DOMFloat32Array> position_; |
| 38 Member<DOMFloat32Array> angular_velocity_; | 38 Member<DOMFloat32Array> angular_velocity_; |
| 39 Member<DOMFloat32Array> linear_velocity_; | 39 Member<DOMFloat32Array> linear_velocity_; |
| 40 Member<DOMFloat32Array> angular_acceleration_; | 40 Member<DOMFloat32Array> angular_acceleration_; |
| 41 Member<DOMFloat32Array> linear_acceleration_; | 41 Member<DOMFloat32Array> linear_acceleration_; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| 45 | 45 |
| 46 #endif // VRPose_h | 46 #endif // VRPose_h |
| OLD | NEW |