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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.idl

Issue 2720943002: Implement DeviceMotionEvent constructor. (Closed)
Patch Set: 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.idl
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.idl b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.idl
index 47778630d2dcc6d92d6b8d1820b007ba371ff34d..041dc1d1ce2450763de5b0fd0014b860f0dbb6ad 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.idl
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.idl
@@ -25,7 +25,7 @@
// https://w3c.github.io/deviceorientation/spec-source-orientation.html#devicemotion
timvolodine 2017/03/02 23:31:23 https://www.w3.org/TR/2016/CR-orientation-event-20
Reilly Grant (use Gerrit) 2017/03/03 01:46:36 Done.
-// TODO(foolip): DeviceMotionEvent should have a constructor.
+[Constructor(DOMString type, optional DeviceMotionEventInit eventInitDict)]
interface DeviceMotionEvent : Event {
readonly attribute DeviceAcceleration? acceleration;
readonly attribute DeviceAcceleration? accelerationIncludingGravity;

Powered by Google App Engine
This is Rietveld 408576698