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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 #include "modules/gamepad/GamepadEventInit.h" 10 #include "modules/gamepad/GamepadEventInit.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class GamepadEvent final : public Event { 14 class GamepadEvent final : public Event {
15 DEFINE_WRAPPERTYPEINFO(); 15 DEFINE_WRAPPERTYPEINFO();
16 public: 16 public:
17 static PassRefPtrWillBeRawPtr<GamepadEvent> create() 17 static RawPtr<GamepadEvent> create()
18 { 18 {
19 return adoptRefWillBeNoop(new GamepadEvent); 19 return adoptRefWillBeNoop(new GamepadEvent);
20 } 20 }
21 static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, bool canBubble, bool cancelable, Gamepad* gamepad) 21 static RawPtr<GamepadEvent> create(const AtomicString& type, bool canBubble, bool cancelable, Gamepad* gamepad)
22 { 22 {
23 return adoptRefWillBeNoop(new GamepadEvent(type, canBubble, cancelable, gamepad)); 23 return new GamepadEvent(type, canBubble, cancelable, gamepad);
24 } 24 }
25 static PassRefPtrWillBeRawPtr<GamepadEvent> create(const AtomicString& type, const GamepadEventInit& initializer) 25 static RawPtr<GamepadEvent> create(const AtomicString& type, const GamepadEv entInit& initializer)
26 { 26 {
27 return adoptRefWillBeNoop(new GamepadEvent(type, initializer)); 27 return new GamepadEvent(type, initializer);
28 } 28 }
29 ~GamepadEvent() override; 29 ~GamepadEvent() override;
30 30
31 Gamepad* getGamepad() const { return m_gamepad.get(); } 31 Gamepad* getGamepad() const { return m_gamepad.get(); }
32 32
33 const AtomicString& interfaceName() const override; 33 const AtomicString& interfaceName() const override;
34 34
35 DECLARE_VIRTUAL_TRACE(); 35 DECLARE_VIRTUAL_TRACE();
36 36
37 private: 37 private:
38 GamepadEvent(); 38 GamepadEvent();
39 GamepadEvent(const AtomicString& type, bool canBubble, bool cancelable, Game pad*); 39 GamepadEvent(const AtomicString& type, bool canBubble, bool cancelable, Game pad*);
40 GamepadEvent(const AtomicString&, const GamepadEventInit&); 40 GamepadEvent(const AtomicString&, const GamepadEventInit&);
41 41
42 PersistentWillBeMember<Gamepad> m_gamepad; 42 Member<Gamepad> m_gamepad;
43 }; 43 };
44 44
45 } // namespace blink 45 } // namespace blink
46 46
47 #endif // GamepadEvent_h 47 #endif // GamepadEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698