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

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

Issue 2720003003: Implement DeviceOrientationEvent 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/DeviceOrientationEvent.idl
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl
index e409fec25938693374201ca2e1cabd88e7705044..c675469ab85e3fefe18045c145f4ff9880811cbc 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.idl
@@ -25,7 +25,7 @@
// https://w3c.github.io/deviceorientation/spec-source-orientation.html#deviceorientation
-// TODO(foolip): DeviceOrientationEvent should have a constructor.
+[Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict)]
interface DeviceOrientationEvent : Event {
readonly attribute double? alpha;
readonly attribute double? beta;

Powered by Google App Engine
This is Rietveld 408576698