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

Side by Side Diff: Source/modules/device_light/DeviceLightEvent.cpp

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix Tim's comments Created 6 years, 8 months 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698