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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 private: | 64 private: |
65 explicit NavigatorGamepad(LocalFrame*); | 65 explicit NavigatorGamepad(LocalFrame*); |
66 | 66 |
67 static const char* supplementName(); | 67 static const char* supplementName(); |
68 | 68 |
69 // DOMWindowProperty | 69 // DOMWindowProperty |
70 virtual void willDestroyGlobalObjectInFrame() OVERRIDE; | 70 virtual void willDestroyGlobalObjectInFrame() OVERRIDE; |
71 virtual void willDetachGlobalObjectFromFrame() OVERRIDE; | 71 virtual void willDetachGlobalObjectFromFrame() OVERRIDE; |
72 | 72 |
73 // DeviceSensorEventController | 73 // DeviceSensorEventController |
| 74 virtual void pageVisibilityChanged() OVERRIDE FINAL; |
74 virtual void registerWithDispatcher() OVERRIDE; | 75 virtual void registerWithDispatcher() OVERRIDE; |
75 virtual void unregisterWithDispatcher() OVERRIDE; | 76 virtual void unregisterWithDispatcher() OVERRIDE; |
76 virtual bool hasLastData() OVERRIDE; | 77 virtual bool hasLastData() OVERRIDE; |
77 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE; | 78 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE; |
78 virtual bool isNullEvent(Event*) OVERRIDE; | 79 virtual bool isNullEvent(Event*) OVERRIDE; |
79 virtual Document* document() OVERRIDE; | 80 virtual Document* document() OVERRIDE; |
80 | 81 |
81 // DOMWindowLifecycleObserver | 82 // DOMWindowLifecycleObserver |
82 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE; | 83 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE; |
83 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID
E; | 84 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID
E; |
84 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE; | 85 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE; |
85 | 86 |
| 87 // Supplement |
| 88 virtual void willBeDestroyed(); |
| 89 |
| 90 void invalidateCanContinueDispatchingSentinel(); |
| 91 |
86 PersistentWillBeMember<GamepadList> m_gamepads; | 92 PersistentWillBeMember<GamepadList> m_gamepads; |
87 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; | 93 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; |
| 94 bool* m_canContinueDispatchingSentinelPtr; |
88 }; | 95 }; |
89 | 96 |
90 } // namespace WebCore | 97 } // namespace WebCore |
91 | 98 |
92 #endif // NavigatorGamepad_h | 99 #endif // NavigatorGamepad_h |
OLD | NEW |