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

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

Issue 1967633002: Updated VRService to match the latest Blink WebVR interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And we're back to removing all the array size checks Created 4 years, 7 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 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 "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 double timeStamp() const { return m_timeStamp; } 24 double timeStamp() const { return m_timeStamp; }
25 DOMFloat32Array* orientation() const { return m_orientation; } 25 DOMFloat32Array* orientation() const { return m_orientation; }
26 DOMFloat32Array* position() const { return m_position; } 26 DOMFloat32Array* position() const { return m_position; }
27 DOMFloat32Array* angularVelocity() const { return m_angularVelocity; } 27 DOMFloat32Array* angularVelocity() const { return m_angularVelocity; }
28 DOMFloat32Array* linearVelocity() const { return m_linearVelocity; } 28 DOMFloat32Array* linearVelocity() const { return m_linearVelocity; }
29 DOMFloat32Array* angularAcceleration() const { return m_angularAcceleration; } 29 DOMFloat32Array* angularAcceleration() const { return m_angularAcceleration; }
30 DOMFloat32Array* linearAcceleration() const { return m_linearAcceleration; } 30 DOMFloat32Array* linearAcceleration() const { return m_linearAcceleration; }
31 31
32 void setPose(const mojom::blink::VRSensorStatePtr&); 32 void setPose(const mojom::blink::VRPosePtr&);
33 33
34 DECLARE_VIRTUAL_TRACE(); 34 DECLARE_VIRTUAL_TRACE();
35 35
36 private: 36 private:
37 VRPose(); 37 VRPose();
38 38
39 double m_timeStamp; 39 double m_timeStamp;
40 Member<DOMFloat32Array> m_orientation; 40 Member<DOMFloat32Array> m_orientation;
41 Member<DOMFloat32Array> m_position; 41 Member<DOMFloat32Array> m_position;
42 Member<DOMFloat32Array> m_angularVelocity; 42 Member<DOMFloat32Array> m_angularVelocity;
43 Member<DOMFloat32Array> m_linearVelocity; 43 Member<DOMFloat32Array> m_linearVelocity;
44 Member<DOMFloat32Array> m_angularAcceleration; 44 Member<DOMFloat32Array> m_angularAcceleration;
45 Member<DOMFloat32Array> m_linearAcceleration; 45 Member<DOMFloat32Array> m_linearAcceleration;
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif // VRPose_h 50 #endif // VRPose_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/vr/VRGetDevicesCallback.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