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.
6 #include "modules/gamepad/GamepadEvent.h"
10 GamepadEventInit::GamepadEventInit()
14 GamepadEvent::GamepadEvent()
16 ScriptWrappable::init(this);
19 GamepadEvent::GamepadEvent(const AtomicString& type, bool canBubble, bool cancelable, Gamepad* gamepad)
20 : Event(type, canBubble, cancelable)
23 ScriptWrappable::init(this);
26 GamepadEvent::GamepadEvent(const AtomicString& type, const GamepadEventInit& initializer)
27 : Event(type, initializer)
28 , m_gamepad(initializer.gamepad)
30 ScriptWrappable::init(this);
33 GamepadEvent::~GamepadEvent()
37 const AtomicString& GamepadEvent::interfaceName() const
39 return EventNames::GamepadEvent;
42 void GamepadEvent::trace(Visitor* visitor)
44 visitor->trace(m_gamepad);
45 Event::trace(visitor);
48 } // namespace WebCore