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 20 matching lines...) Expand all Loading... |
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" | 34 #include "platform/heap/Handle.h" |
35 #include "public/platform/WebGamepads.h" | 35 #include "public/platform/WebGamepads.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class Document; | 39 class Document; |
40 class Gamepad; | 40 class Gamepad; |
41 class Gamepads; | |
42 class GamepadList; | 41 class GamepadList; |
43 class Navigator; | 42 class Navigator; |
44 class WebKitGamepadList; | 43 class WebKitGamepadList; |
45 | 44 |
46 class NavigatorGamepad final : public NoBaseWillBeGarbageCollectedFinalized<Navi
gatorGamepad>, public WillBeHeapSupplement<Navigator>, public DOMWindowProperty,
public PlatformEventController, public DOMWindowLifecycleObserver { | 45 class NavigatorGamepad final : public NoBaseWillBeGarbageCollectedFinalized<Navi
gatorGamepad>, public WillBeHeapSupplement<Navigator>, public DOMWindowProperty,
public PlatformEventController, public DOMWindowLifecycleObserver { |
47 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorGamepad); | 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorGamepad); |
48 public: | 47 public: |
49 static NavigatorGamepad* from(Document&); | 48 static NavigatorGamepad* from(Document&); |
50 static NavigatorGamepad& from(Navigator&); | 49 static NavigatorGamepad& from(Navigator&); |
51 virtual ~NavigatorGamepad(); | 50 virtual ~NavigatorGamepad(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 85 |
87 PersistentWillBeMember<GamepadList> m_gamepads; | 86 PersistentWillBeMember<GamepadList> m_gamepads; |
88 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; | 87 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; |
89 PersistentHeapDequeWillBeHeapDeque<Member<Gamepad> > m_pendingEvents; | 88 PersistentHeapDequeWillBeHeapDeque<Member<Gamepad> > m_pendingEvents; |
90 AsyncMethodRunner<NavigatorGamepad> m_dispatchOneEventRunner; | 89 AsyncMethodRunner<NavigatorGamepad> m_dispatchOneEventRunner; |
91 }; | 90 }; |
92 | 91 |
93 } // namespace blink | 92 } // namespace blink |
94 | 93 |
95 #endif // NavigatorGamepad_h | 94 #endif // NavigatorGamepad_h |
OLD | NEW |