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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRPose.h

Issue 2494733002: Reland of mojo VR interface simpified. (Closed)
Patch Set: Fix Werror Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 "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 m_orientation; } 22 DOMFloat32Array* orientation() const { return m_orientation; }
23 DOMFloat32Array* position() const { return m_position; } 23 DOMFloat32Array* position() const { return m_position; }
24 DOMFloat32Array* angularVelocity() const { return m_angularVelocity; } 24 DOMFloat32Array* angularVelocity() const { return m_angularVelocity; }
25 DOMFloat32Array* linearVelocity() const { return m_linearVelocity; } 25 DOMFloat32Array* linearVelocity() const { return m_linearVelocity; }
26 DOMFloat32Array* angularAcceleration() const { return m_angularAcceleration; } 26 DOMFloat32Array* angularAcceleration() const { return m_angularAcceleration; }
27 DOMFloat32Array* linearAcceleration() const { return m_linearAcceleration; } 27 DOMFloat32Array* linearAcceleration() const { return m_linearAcceleration; }
28 28
29 void setPose(const device::blink::VRPosePtr&); 29 void setPose(const device::mojom::blink::VRPosePtr&);
30 30
31 DECLARE_VIRTUAL_TRACE(); 31 DECLARE_VIRTUAL_TRACE();
32 32
33 private: 33 private:
34 VRPose(); 34 VRPose();
35 35
36 Member<DOMFloat32Array> m_orientation; 36 Member<DOMFloat32Array> m_orientation;
37 Member<DOMFloat32Array> m_position; 37 Member<DOMFloat32Array> m_position;
38 Member<DOMFloat32Array> m_angularVelocity; 38 Member<DOMFloat32Array> m_angularVelocity;
39 Member<DOMFloat32Array> m_linearVelocity; 39 Member<DOMFloat32Array> m_linearVelocity;
40 Member<DOMFloat32Array> m_angularAcceleration; 40 Member<DOMFloat32Array> m_angularAcceleration;
41 Member<DOMFloat32Array> m_linearAcceleration; 41 Member<DOMFloat32Array> m_linearAcceleration;
42 }; 42 };
43 43
44 } // namespace blink 44 } // namespace blink
45 45
46 #endif // VRPose_h 46 #endif // VRPose_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRFrameData.cpp ('k') | third_party/WebKit/Source/modules/vr/VRPose.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698