| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DeviceLightEvent_h | 5 #ifndef DeviceLightEvent_h |
| 6 #define DeviceLightEvent_h | 6 #define DeviceLightEvent_h |
| 7 | 7 |
| 8 #include "core/events/Event.h" | 8 #include "modules/EventModules.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 | 10 |
| 11 namespace WebCore { | 11 namespace WebCore { |
| 12 | 12 |
| 13 struct DeviceLightEventInit : public EventInit { | 13 struct DeviceLightEventInit : public EventInit { |
| 14 DeviceLightEventInit() | 14 DeviceLightEventInit() |
| 15 : value(std::numeric_limits<double>::infinity()) | 15 : value(std::numeric_limits<double>::infinity()) |
| 16 { | 16 { |
| 17 bubbles = true; | 17 bubbles = true; |
| 18 }; | 18 }; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 47 DeviceLightEvent(const AtomicString& eventType, const DeviceLightEventInit&
initializer); | 47 DeviceLightEvent(const AtomicString& eventType, const DeviceLightEventInit&
initializer); |
| 48 | 48 |
| 49 double m_value; | 49 double m_value; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 DEFINE_TYPE_CASTS(DeviceLightEvent, Event, event, event->interfaceName() == Even
tNames::DeviceLightEvent, event.interfaceName() == EventNames::DeviceLightEvent)
; | 52 DEFINE_TYPE_CASTS(DeviceLightEvent, Event, event, event->interfaceName() == Even
tNames::DeviceLightEvent, event.interfaceName() == EventNames::DeviceLightEvent)
; |
| 53 | 53 |
| 54 } // namespace WebCore | 54 } // namespace WebCore |
| 55 | 55 |
| 56 #endif // DeviceLightEvent_h | 56 #endif // DeviceLightEvent_h |
| OLD | NEW |