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

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

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
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/modules/device_light/DeviceLightEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/device_light/DeviceLightEvent.h
diff --git a/Source/modules/device_light/DeviceLightEvent.h b/Source/modules/device_light/DeviceLightEvent.h
index c90607cc80fbc7a8331614fd65dc19e8e2d29160..3632c40b13f1ff8937e39782aba6a6695f889a6e 100644
--- a/Source/modules/device_light/DeviceLightEvent.h
+++ b/Source/modules/device_light/DeviceLightEvent.h
@@ -6,20 +6,11 @@
#define DeviceLightEvent_h
#include "modules/EventModules.h"
+#include "modules/device_light/DeviceLightEventInit.h"
#include "platform/heap/Handle.h"
namespace blink {
-struct DeviceLightEventInit : public EventInit {
- DeviceLightEventInit()
- : value(std::numeric_limits<double>::infinity())
- {
- bubbles = true;
- };
-
- double value;
-};
-
class DeviceLightEvent final : public Event {
DEFINE_WRAPPERTYPEINFO();
public:
« no previous file with comments | « Source/core/events/Event.h ('k') | Source/modules/device_light/DeviceLightEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698