OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are met: | 5 * modification, are permitted provided that the following conditions are met: |
6 * | 6 * |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #ifndef NavigatorGamepad_h | 26 #ifndef NavigatorGamepad_h |
27 #define NavigatorGamepad_h | 27 #define NavigatorGamepad_h |
28 | 28 |
29 #include "core/frame/DOMWindowLifecycleObserver.h" | 29 #include "core/frame/DOMWindowLifecycleObserver.h" |
30 #include "core/frame/DOMWindowProperty.h" | 30 #include "core/frame/DOMWindowProperty.h" |
31 #include "core/frame/PlatformEventController.h" | 31 #include "core/frame/PlatformEventController.h" |
32 #include "platform/AsyncMethodRunner.h" | 32 #include "platform/AsyncMethodRunner.h" |
33 #include "platform/Supplementable.h" | 33 #include "platform/Supplementable.h" |
34 #include "platform/heap/Handle.h" | |
35 #include "public/platform/WebGamepads.h" | 34 #include "public/platform/WebGamepads.h" |
36 | 35 |
37 namespace blink { | 36 namespace blink { |
38 | 37 |
39 class Document; | 38 class Document; |
40 class Gamepad; | 39 class Gamepad; |
41 class Gamepads; | |
42 class GamepadList; | 40 class GamepadList; |
43 class Navigator; | 41 class Navigator; |
44 class WebKitGamepadList; | 42 class WebKitGamepadList; |
45 | 43 |
46 class NavigatorGamepad final : public NoBaseWillBeGarbageCollectedFinalized<Navi
gatorGamepad>, public WillBeHeapSupplement<Navigator>, public DOMWindowProperty,
public PlatformEventController, public DOMWindowLifecycleObserver { | 44 class NavigatorGamepad final : public NoBaseWillBeGarbageCollectedFinalized<Navi
gatorGamepad>, public WillBeHeapSupplement<Navigator>, public DOMWindowProperty,
public PlatformEventController, public DOMWindowLifecycleObserver { |
47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorGamepad); | 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorGamepad); |
48 public: | 46 public: |
49 static NavigatorGamepad* from(Document&); | 47 static NavigatorGamepad* from(Document&); |
50 static NavigatorGamepad& from(Navigator&); | 48 static NavigatorGamepad& from(Navigator&); |
51 virtual ~NavigatorGamepad(); | 49 virtual ~NavigatorGamepad(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 84 |
87 PersistentWillBeMember<GamepadList> m_gamepads; | 85 PersistentWillBeMember<GamepadList> m_gamepads; |
88 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; | 86 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; |
89 PersistentHeapDequeWillBeHeapDeque<Member<Gamepad> > m_pendingEvents; | 87 PersistentHeapDequeWillBeHeapDeque<Member<Gamepad> > m_pendingEvents; |
90 AsyncMethodRunner<NavigatorGamepad> m_dispatchOneEventRunner; | 88 AsyncMethodRunner<NavigatorGamepad> m_dispatchOneEventRunner; |
91 }; | 89 }; |
92 | 90 |
93 } // namespace blink | 91 } // namespace blink |
94 | 92 |
95 #endif // NavigatorGamepad_h | 93 #endif // NavigatorGamepad_h |
OLD | NEW |