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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.h

Issue 2720943002: Implement DeviceMotionEvent constructor. (Closed)
Patch Set: Reference Candidate Recommendation. Created 3 years, 10 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
Index: third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.h
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.h b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.h
index 286e137839b5c08fd45ef36edf16ee51b83ca1ec..986088a5376a0c2d8282d6f09b4bdc720610ddb5 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.h
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionData.h
@@ -30,6 +30,9 @@
namespace blink {
+class DeviceAccelerationInit;
+class DeviceMotionEventInit;
+class DeviceRotationRateInit;
class WebDeviceMotionData;
class DeviceMotionData final : public GarbageCollected<DeviceMotionData> {
@@ -43,6 +46,7 @@ class DeviceMotionData final : public GarbageCollected<DeviceMotionData> {
double y,
bool canProvideZ,
double z);
+ static Acceleration* create(const DeviceAccelerationInit&);
DEFINE_INLINE_TRACE() {}
bool canProvideX() const { return m_canProvideX; }
@@ -79,6 +83,7 @@ class DeviceMotionData final : public GarbageCollected<DeviceMotionData> {
double beta,
bool canProvideGamma,
double gamma);
+ static RotationRate* create(const DeviceRotationRateInit&);
DEFINE_INLINE_TRACE() {}
bool canProvideAlpha() const { return m_canProvideAlpha; }
@@ -112,6 +117,7 @@ class DeviceMotionData final : public GarbageCollected<DeviceMotionData> {
RotationRate*,
bool canProvideInterval,
double interval);
+ static DeviceMotionData* create(const DeviceMotionEventInit&);
static DeviceMotionData* create(const WebDeviceMotionData&);
DECLARE_TRACE();

Powered by Google App Engine
This is Rietveld 408576698