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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 explicit NavigatorGamepad(LocalFrame*); | 69 explicit NavigatorGamepad(LocalFrame*); |
70 | 70 |
71 static const char* supplementName(); | 71 static const char* supplementName(); |
72 | 72 |
73 void dispatchOneEvent(); | 73 void dispatchOneEvent(); |
74 void didRemoveGamepadEventListeners(); | 74 void didRemoveGamepadEventListeners(); |
75 bool startUpdatingIfAttached(); | 75 bool startUpdatingIfAttached(); |
76 | 76 |
77 // ContextLifecycleObserver and PageVisibilityObserver | 77 // ContextLifecycleObserver and PageVisibilityObserver |
78 void contextDestroyed(ExecutionContext*) override; | 78 void contextDestroyed(ExecutionContext*) override; |
79 void contextDestroyed(Page*) override; | |
80 void pageVisibilityChanged() override; | 79 void pageVisibilityChanged() override; |
81 | 80 |
82 // PlatformEventController | 81 // PlatformEventController |
83 void registerWithDispatcher() override; | 82 void registerWithDispatcher() override; |
84 void unregisterWithDispatcher() override; | 83 void unregisterWithDispatcher() override; |
85 bool hasLastData() override; | 84 bool hasLastData() override; |
86 void didUpdateData() override; | 85 void didUpdateData() override; |
87 | 86 |
88 // LocalDOMWindow::EventListenerObserver | 87 // LocalDOMWindow::EventListenerObserver |
89 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; | 88 void didAddEventListener(LocalDOMWindow*, const AtomicString&) override; |
90 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override; | 89 void didRemoveEventListener(LocalDOMWindow*, const AtomicString&) override; |
91 void didRemoveAllEventListeners(LocalDOMWindow*) override; | 90 void didRemoveAllEventListeners(LocalDOMWindow*) override; |
92 | 91 |
93 Member<GamepadList> m_gamepads; | 92 Member<GamepadList> m_gamepads; |
94 HeapDeque<Member<Gamepad>> m_pendingEvents; | 93 HeapDeque<Member<Gamepad>> m_pendingEvents; |
95 Member<AsyncMethodRunner<NavigatorGamepad>> m_dispatchOneEventRunner; | 94 Member<AsyncMethodRunner<NavigatorGamepad>> m_dispatchOneEventRunner; |
96 }; | 95 }; |
97 | 96 |
98 } // namespace blink | 97 } // namespace blink |
99 | 98 |
100 #endif // NavigatorGamepad_h | 99 #endif // NavigatorGamepad_h |
OLD | NEW |