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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
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 #include "config.h" 5 #include "config.h"
6 #include "modules/device_light/DeviceLightEvent.h" 6 #include "modules/device_light/DeviceLightEvent.h"
7 7
8 namespace blink { 8 namespace blink {
9 9
10 DeviceLightEvent::~DeviceLightEvent() 10 DeviceLightEvent::~DeviceLightEvent()
11 { 11 {
12 } 12 }
13 13
14 DeviceLightEvent::DeviceLightEvent() 14 DeviceLightEvent::DeviceLightEvent()
15 : m_value(std::numeric_limits<double>::infinity()) 15 : m_value(std::numeric_limits<double>::infinity())
16 { 16 {
17 ScriptWrappable::init(this);
18 } 17 }
19 18
20 DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, double value) 19 DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, double value)
21 : Event(eventType, true, false) // The DeviceLightEvent bubbles but is not c ancelable. 20 : Event(eventType, true, false) // The DeviceLightEvent bubbles but is not c ancelable.
22 , m_value(value) 21 , m_value(value)
23 { 22 {
24 ScriptWrappable::init(this);
25 } 23 }
26 24
27 DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, const DeviceLi ghtEventInit& initializer) 25 DeviceLightEvent::DeviceLightEvent(const AtomicString& eventType, const DeviceLi ghtEventInit& initializer)
28 : Event(eventType, initializer) 26 : Event(eventType, initializer)
29 , m_value(initializer.value) 27 , m_value(initializer.value)
30 { 28 {
31 ScriptWrappable::init(this);
32 } 29 }
33 30
34 const AtomicString& DeviceLightEvent::interfaceName() const 31 const AtomicString& DeviceLightEvent::interfaceName() const
35 { 32 {
36 return EventNames::DeviceLightEvent; 33 return EventNames::DeviceLightEvent;
37 } 34 }
38 35
39 } // namespace blink 36 } // namespace blink
40 37
41 38
42 39
43 40
OLDNEW
« no previous file with comments | « Source/modules/crypto/SubtleCrypto.cpp ('k') | Source/modules/device_orientation/DeviceAcceleration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698