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#include "modules/device_light/DeviceLightEvent.h" 7 8namespace blink { 9 10DeviceLightEvent::~DeviceLightEvent() 11{ 12} 13 14DeviceLightEvent::DeviceLightEvent() 15 : m_value(std::numeric_limits<double>::infinity()) 16{ 17} 18 19DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, double value) 20 : Event(eventType, true, false) // The DeviceLightEvent bubbles but is not cancelable. 21 , m_value(value) 22{ 23} 24 25DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, const DeviceLightEventInit& initializer) 26 : Event(eventType, initializer) 27 , m_value(initializer.value) 28{ 29} 30 31const AtomicString& DeviceLightEvent::interfaceName() const 32{ 33 return EventNames::DeviceLightEvent; 34} 35 36} // namespace blink 37 38 39 40 41