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

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

Issue 200783002: Gamepad API: add support for gamepadconnected and gamepaddisconnected events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: layout fix: webexposed/global-constructors-listing Created 6 years, 9 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/GamepadEvent.h ('k') | Source/modules/gamepad/GamepadEvent.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « Source/modules/gamepad/GamepadEvent.h ('k') | Source/modules/gamepad/GamepadEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698