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()
18 GamepadEvent::GamepadEvent(const AtomicString& type, bool canBubble, bool cancelable, Gamepad* gamepad)
19 : Event(type, canBubble, cancelable)
24 GamepadEvent::GamepadEvent(const AtomicString& type, const GamepadEventInit& initializer)
25 : Event(type, initializer)
26 , m_gamepad(initializer.gamepad)
30 GamepadEvent::~GamepadEvent()
34 const AtomicString& GamepadEvent::interfaceName() const
36 return EventNames::GamepadEvent;
39 void GamepadEvent::trace(Visitor* visitor)
41 visitor->trace(m_gamepad);
42 Event::trace(visitor);