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

Side by Side Diff: Source/modules/gamepad/GamepadEvent.h

Issue 630833003: Replacing the OVERRIDE with override and FINAL with final in WebKit/Source/modules/gamepad (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/modules/gamepad/GamepadButton.h ('k') | Source/modules/gamepad/GamepadList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 GamepadEvent_h 5 #ifndef GamepadEvent_h
6 #define GamepadEvent_h 6 #define GamepadEvent_h
7 7
8 #include "modules/EventModules.h" 8 #include "modules/EventModules.h"
9 #include "modules/gamepad/Gamepad.h" 9 #include "modules/gamepad/Gamepad.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 struct GamepadEventInit : public EventInit { 13 struct GamepadEventInit : public EventInit {
14 GamepadEventInit(); 14 GamepadEventInit();
15 15
16 Member<Gamepad> gamepad; 16 Member<Gamepad> gamepad;
17 }; 17 };
18 18
19 class GamepadEvent FINAL : public Event { 19 class GamepadEvent final : public Event {
20 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
21 public: 21 public:
22 static PassRefPtrWillBeRawPtr<GamepadEvent> create() 22 static PassRefPtrWillBeRawPtr<GamepadEvent> create()
23 { 23 {
24 return adoptRefWillBeNoop(new GamepadEvent); 24 return adoptRefWillBeNoop(new GamepadEvent);
25 } 25 }
26 static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, bool canBubble, bool cancelable, Gamepad* gamepad) 26 static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, bool canBubble, bool cancelable, Gamepad* gamepad)
27 { 27 {
28 return adoptRefWillBeNoop(new GamepadEvent(type, canBubble, cancelable, gamepad)); 28 return adoptRefWillBeNoop(new GamepadEvent(type, canBubble, cancelable, gamepad));
29 } 29 }
30 static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, const GamepadEventInit& initializer) 30 static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, const GamepadEventInit& initializer)
31 { 31 {
32 return adoptRefWillBeNoop(new GamepadEvent(type, initializer)); 32 return adoptRefWillBeNoop(new GamepadEvent(type, initializer));
33 } 33 }
34 virtual ~GamepadEvent(); 34 virtual ~GamepadEvent();
35 35
36 Gamepad* gamepad() const { return m_gamepad.get(); } 36 Gamepad* gamepad() const { return m_gamepad.get(); }
37 37
38 virtual const AtomicString& interfaceName() const OVERRIDE; 38 virtual const AtomicString& interfaceName() const override;
39 39
40 virtual void trace(Visitor*) OVERRIDE; 40 virtual void trace(Visitor*) override;
41 41
42 private: 42 private:
43 GamepadEvent(); 43 GamepadEvent();
44 GamepadEvent(const AtomicString& type, bool canBubble, bool cancelable, Game pad*); 44 GamepadEvent(const AtomicString& type, bool canBubble, bool cancelable, Game pad*);
45 GamepadEvent(const AtomicString&, const GamepadEventInit&); 45 GamepadEvent(const AtomicString&, const GamepadEventInit&);
46 46
47 PersistentWillBeMember<Gamepad> m_gamepad; 47 PersistentWillBeMember<Gamepad> m_gamepad;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // GamepadEvent_h 52 #endif // GamepadEvent_h
OLDNEW
« no previous file with comments | « Source/modules/gamepad/GamepadButton.h ('k') | Source/modules/gamepad/GamepadList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698