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.
6 #include "modules/device_light/DeviceLightEvent.h"
10 DeviceLightEvent::~DeviceLightEvent()
14 DeviceLightEvent::DeviceLightEvent()
15 : m_value(std::numeric_limits<double>::infinity())
17 ScriptWrappable::init(this);
20 DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, double value)
21 : Event(eventType, true, false) // The DeviceLightEvent bubbles but is not cancelable.
24 ScriptWrappable::init(this);
27 DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, const DeviceLightEventInit& initializer)
28 : Event(eventType, initializer)
29 , m_value(initializer.value)
31 ScriptWrappable::init(this);
34 const AtomicString& DeviceLightEvent::interfaceName() const
36 return EventNames::DeviceLightEvent;
39 } // namespace WebCore