| Index: third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h
|
| diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h
|
| index 47ba9603bb32d7f11d9d8641ff29ff53e68d2dbd..672ae1118edcc9a27296dbb256193c8618359bfe 100644
|
| --- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h
|
| +++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.h
|
| @@ -33,6 +33,7 @@ namespace blink {
|
|
|
| class DeviceAcceleration;
|
| class DeviceMotionData;
|
| +class DeviceMotionEventInit;
|
| class DeviceRotationRate;
|
|
|
| class DeviceMotionEvent final : public Event {
|
| @@ -42,6 +43,10 @@ class DeviceMotionEvent final : public Event {
|
| ~DeviceMotionEvent() override;
|
| static DeviceMotionEvent* create() { return new DeviceMotionEvent; }
|
| static DeviceMotionEvent* create(const AtomicString& eventType,
|
| + const DeviceMotionEventInit& initializer) {
|
| + return new DeviceMotionEvent(eventType, initializer);
|
| + }
|
| + static DeviceMotionEvent* create(const AtomicString& eventType,
|
| DeviceMotionData* deviceMotionData) {
|
| return new DeviceMotionEvent(eventType, deviceMotionData);
|
| }
|
| @@ -66,6 +71,7 @@ class DeviceMotionEvent final : public Event {
|
|
|
| private:
|
| DeviceMotionEvent();
|
| + DeviceMotionEvent(const AtomicString&, const DeviceMotionEventInit&);
|
| DeviceMotionEvent(const AtomicString& eventType, DeviceMotionData*);
|
|
|
| Member<DeviceMotionData> m_deviceMotionData;
|
|
|