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 21 matching lines...) Expand all Loading... |
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 class WebGamepad; | 38 class WebGamepad; |
39 class WebGamepads; | 39 class WebGamepads; |
40 } | 40 } |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 | 43 |
44 class Document; | 44 class Document; |
45 class Gamepad; | 45 class Gamepad; |
46 class GamepadList; | 46 class GamepadList; |
47 class Navigator; | 47 class Navigator; |
48 class WebKitGamepadList; | 48 class WebKitGamepadList; |
49 | 49 |
50 class NavigatorGamepad FINAL : public NoBaseWillBeGarbageCollectedFinalized<Navi
gatorGamepad>, public WillBeHeapSupplement<Navigator>, public DOMWindowProperty,
public DeviceEventControllerBase, public DOMWindowLifecycleObserver { | 50 class NavigatorGamepad FINAL : public NoBaseWillBeGarbageCollectedFinalized<Navi
gatorGamepad>, public WillBeHeapSupplement<Navigator>, public DOMWindowProperty,
public DeviceEventControllerBase, public DOMWindowLifecycleObserver { |
51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorGamepad); | 51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorGamepad); |
52 public: | 52 public: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) OVERR
IDE; | 87 virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) OVERR
IDE; |
88 virtual void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) OV
ERRIDE; | 88 virtual void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) OV
ERRIDE; |
89 virtual void didRemoveAllEventListeners(LocalDOMWindow*) OVERRIDE; | 89 virtual void didRemoveAllEventListeners(LocalDOMWindow*) OVERRIDE; |
90 | 90 |
91 PersistentWillBeMember<GamepadList> m_gamepads; | 91 PersistentWillBeMember<GamepadList> m_gamepads; |
92 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; | 92 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; |
93 PersistentHeapDequeWillBeHeapDeque<Member<Gamepad> > m_pendingEvents; | 93 PersistentHeapDequeWillBeHeapDeque<Member<Gamepad> > m_pendingEvents; |
94 AsyncMethodRunner<NavigatorGamepad> m_dispatchOneEventRunner; | 94 AsyncMethodRunner<NavigatorGamepad> m_dispatchOneEventRunner; |
95 }; | 95 }; |
96 | 96 |
97 } // namespace WebCore | 97 } // namespace blink |
98 | 98 |
99 #endif // NavigatorGamepad_h | 99 #endif // NavigatorGamepad_h |
OLD | NEW |