OLD | NEW |
(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 #include "modules/gamepad/GamepadEvent.h" |
| 7 |
| 8 #include "core/events/ThreadLocalEventNames.h" |
| 9 |
| 10 namespace WebCore { |
| 11 |
| 12 GamepadEventInit::GamepadEventInit() |
| 13 { |
| 14 } |
| 15 |
| 16 GamepadEvent::GamepadEvent() |
| 17 { |
| 18 ScriptWrappable::init(this); |
| 19 } |
| 20 |
| 21 GamepadEvent::GamepadEvent(const AtomicString& type, bool canBubble, bool cancel
able, PassRefPtrWillBeRawPtr<Gamepad> gamepad) |
| 22 : Event(type, canBubble, cancelable) |
| 23 , m_gamepad(gamepad) |
| 24 { |
| 25 ScriptWrappable::init(this); |
| 26 } |
| 27 |
| 28 GamepadEvent::GamepadEvent(const AtomicString& type, const GamepadEventInit& ini
tializer) |
| 29 : Event(type, initializer) |
| 30 , m_gamepad(initializer.gamepad) |
| 31 { |
| 32 ScriptWrappable::init(this); |
| 33 } |
| 34 |
| 35 GamepadEvent::~GamepadEvent() |
| 36 { |
| 37 } |
| 38 |
| 39 const AtomicString& GamepadEvent::interfaceName() const |
| 40 { |
| 41 return EventNames::GamepadEvent; |
| 42 } |
| 43 |
| 44 void GamepadEvent::trace(Visitor* visitor) |
| 45 { |
| 46 Event::trace(visitor); |
| 47 } |
| 48 |
| 49 } // namespace WebCore |
OLD | NEW |