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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.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/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;

Powered by Google App Engine
This is Rietveld 408576698