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

Unified Diff: third_party/WebKit/Source/modules/vr/VRPose.h

Issue 2268893003: Updated VRPose.timestamp to use same casing as WebVR spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRPose.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/vr/VRPose.h
diff --git a/third_party/WebKit/Source/modules/vr/VRPose.h b/third_party/WebKit/Source/modules/vr/VRPose.h
index 97cc2d2fcd8c8e86ba853262d85898c8d27ce98c..87dae52103b0e56d3e3c4cb234ce798acdc11b90 100644
--- a/third_party/WebKit/Source/modules/vr/VRPose.h
+++ b/third_party/WebKit/Source/modules/vr/VRPose.h
@@ -6,6 +6,7 @@
#define VRPose_h
#include "bindings/core/v8/ScriptWrappable.h"
+#include "core/dom/DOMHighResTimeStamp.h"
#include "core/dom/DOMTypedArray.h"
#include "device/vr/vr_service.mojom-blink.h"
#include "platform/heap/Handle.h"
@@ -21,7 +22,7 @@ public:
return new VRPose();
}
- double timeStamp() const { return m_timeStamp; }
+ DOMHighResTimeStamp timestamp() const { return m_timestamp; }
DOMFloat32Array* orientation() const { return m_orientation; }
DOMFloat32Array* position() const { return m_position; }
DOMFloat32Array* angularVelocity() const { return m_angularVelocity; }
@@ -36,7 +37,7 @@ public:
private:
VRPose();
- double m_timeStamp;
+ DOMHighResTimeStamp m_timestamp;
Member<DOMFloat32Array> m_orientation;
Member<DOMFloat32Array> m_position;
Member<DOMFloat32Array> m_angularVelocity;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRPose.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698