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

Unified Diff: Source/modules/device_light/DeviceLightEvent.idl

Issue 775763007: Use event init dictionary in modules/device_light (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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: Source/modules/device_light/DeviceLightEvent.idl
diff --git a/Source/modules/device_light/DeviceLightEvent.idl b/Source/modules/device_light/DeviceLightEvent.idl
index 6d3d3b9ed440f98a62dbca0d502f9163def1869d..6a1f13f9ae00195040771d0f1ea61d467ed95a5b 100644
--- a/Source/modules/device_light/DeviceLightEvent.idl
+++ b/Source/modules/device_light/DeviceLightEvent.idl
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// http://w3c.github.io/ambient-light/#idl-def-DeviceLightEvent
+
[
RuntimeEnabled=DeviceLight,
- EventConstructor
+ Constructor(DOMString type, optional DeviceLightEventInit eventInitDict),
] interface DeviceLightEvent : Event {
- [InitializedByEventConstructor] readonly attribute unrestricted double value;
+ readonly attribute unrestricted double value;
};

Powered by Google App Engine
This is Rietveld 408576698