OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 |
| 7 #include "modules/device_light/DeviceLightEvent.h" |
| 8 |
| 9 namespace WebCore { |
| 10 |
| 11 DeviceLightEvent::~DeviceLightEvent() |
| 12 { |
| 13 } |
| 14 |
| 15 DeviceLightEvent::DeviceLightEvent() |
| 16 : m_value(std::numeric_limits<double>::infinity()) |
| 17 { |
| 18 ScriptWrappable::init(this); |
| 19 } |
| 20 |
| 21 DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, const double v
alue) |
| 22 : Event(eventType, true, false) // Default event is bubbles, not cancellable
. |
| 23 , m_value(value) |
| 24 { |
| 25 ScriptWrappable::init(this); |
| 26 } |
| 27 |
| 28 DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, const DeviceLi
ghtEventInit& initializer) |
| 29 : Event(eventType, initializer) |
| 30 , m_value(initializer.value) |
| 31 { |
| 32 ScriptWrappable::init(this); |
| 33 } |
| 34 |
| 35 const AtomicString& DeviceLightEvent::interfaceName() const |
| 36 { |
| 37 return EventNames::DeviceLightEvent; |
| 38 } |
| 39 |
| 40 } // namespace WebCore |
| 41 |
| 42 |
| 43 |
| 44 |
OLD | NEW |