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

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

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 #ifndef DeviceLightEvent_h 5 #ifndef DeviceLightEvent_h
6 #define DeviceLightEvent_h 6 #define DeviceLightEvent_h
7 7
8 #include "modules/EventModules.h" 8 #include "modules/EventModules.h"
9 #include "modules/device_light/DeviceLightEventInit.h" 9 #include "modules/device_light/DeviceLightEventInit.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class DeviceLightEvent final : public Event { 14 class DeviceLightEvent final : public Event {
15 DEFINE_WRAPPERTYPEINFO(); 15 DEFINE_WRAPPERTYPEINFO();
16 public: 16 public:
17 virtual ~DeviceLightEvent(); 17 ~DeviceLightEvent() override;
18 18
19 static PassRefPtrWillBeRawPtr<DeviceLightEvent> create() 19 static PassRefPtrWillBeRawPtr<DeviceLightEvent> create()
20 { 20 {
21 return adoptRefWillBeNoop(new DeviceLightEvent); 21 return adoptRefWillBeNoop(new DeviceLightEvent);
22 } 22 }
23 static PassRefPtrWillBeRawPtr<DeviceLightEvent> create(const AtomicString& e ventType, double value) 23 static PassRefPtrWillBeRawPtr<DeviceLightEvent> create(const AtomicString& e ventType, double value)
24 { 24 {
25 return adoptRefWillBeNoop(new DeviceLightEvent(eventType, value)); 25 return adoptRefWillBeNoop(new DeviceLightEvent(eventType, value));
26 } 26 }
27 static PassRefPtrWillBeRawPtr<DeviceLightEvent> create(const AtomicString& e ventType, const DeviceLightEventInit& initializer) 27 static PassRefPtrWillBeRawPtr<DeviceLightEvent> create(const AtomicString& e ventType, const DeviceLightEventInit& initializer)
28 { 28 {
29 return adoptRefWillBeNoop(new DeviceLightEvent(eventType, initializer)); 29 return adoptRefWillBeNoop(new DeviceLightEvent(eventType, initializer));
30 } 30 }
31 31
32 double value() const { return m_value; } 32 double value() const { return m_value; }
33 33
34 virtual const AtomicString& interfaceName() const override; 34 const AtomicString& interfaceName() const override;
35 35
36 private: 36 private:
37 DeviceLightEvent(); 37 DeviceLightEvent();
38 DeviceLightEvent(const AtomicString& eventType, double value); 38 DeviceLightEvent(const AtomicString& eventType, double value);
39 DeviceLightEvent(const AtomicString& eventType, const DeviceLightEventInit& initializer); 39 DeviceLightEvent(const AtomicString& eventType, const DeviceLightEventInit& initializer);
40 40
41 double m_value; 41 double m_value;
42 }; 42 };
43 43
44 DEFINE_TYPE_CASTS(DeviceLightEvent, Event, event, event->interfaceName() == Even tNames::DeviceLightEvent, event.interfaceName() == EventNames::DeviceLightEvent) ; 44 DEFINE_TYPE_CASTS(DeviceLightEvent, Event, event, event->interfaceName() == Even tNames::DeviceLightEvent, event.interfaceName() == EventNames::DeviceLightEvent) ;
45 45
46 } // namespace blink 46 } // namespace blink
47 47
48 #endif // DeviceLightEvent_h 48 #endif // DeviceLightEvent_h
OLDNEW
« no previous file with comments | « Source/modules/device_light/DeviceLightDispatcher.h ('k') | Source/modules/device_orientation/DeviceMotionController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698