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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 static GamepadList* getGamepads(Navigator&); | 55 static GamepadList* getGamepads(Navigator&); |
56 | 56 |
57 WebKitGamepadList* webkitGamepads(); | 57 WebKitGamepadList* webkitGamepads(); |
58 GamepadList* gamepads(); | 58 GamepadList* gamepads(); |
59 | 59 |
60 virtual void trace(Visitor*); | 60 virtual void trace(Visitor*); |
61 | 61 |
62 void didConnectOrDisconnectGamepad(unsigned index, const blink::WebGamepad&,
bool connected); | 62 void didConnectOrDisconnectGamepad(unsigned index, const blink::WebGamepad&,
bool connected); |
63 | 63 |
64 private: | 64 private: |
65 explicit NavigatorGamepad(Document&); | 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 FINAL; | 70 virtual void willDestroyGlobalObjectInFrame() OVERRIDE FINAL; |
71 virtual void willDetachGlobalObjectFromFrame() OVERRIDE FINAL; | 71 virtual void willDetachGlobalObjectFromFrame() OVERRIDE FINAL; |
72 | 72 |
73 // DeviceSensorEventController | 73 // DeviceSensorEventController |
74 virtual void registerWithDispatcher() OVERRIDE FINAL; | 74 virtual void registerWithDispatcher() OVERRIDE FINAL; |
75 virtual void unregisterWithDispatcher() OVERRIDE FINAL; | 75 virtual void unregisterWithDispatcher() OVERRIDE FINAL; |
76 virtual bool hasLastData() OVERRIDE FINAL; | 76 virtual bool hasLastData() OVERRIDE FINAL; |
77 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE FINAL; | 77 virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() OVERRIDE FINAL; |
78 virtual bool isNullEvent(Event*) OVERRIDE FINAL; | 78 virtual bool isNullEvent(Event*) OVERRIDE FINAL; |
79 | 79 |
80 // DOMWindowLifecycleObserver | 80 // DOMWindowLifecycleObserver |
81 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE F
INAL; | 81 virtual void didAddEventListener(DOMWindow*, const AtomicString&) OVERRIDE F
INAL; |
82 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID
E FINAL; | 82 virtual void didRemoveEventListener(DOMWindow*, const AtomicString&) OVERRID
E FINAL; |
83 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE FINAL; | 83 virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE FINAL; |
84 | 84 |
85 PersistentWillBeMember<GamepadList> m_gamepads; | 85 PersistentWillBeMember<GamepadList> m_gamepads; |
86 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; | 86 PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; |
87 }; | 87 }; |
88 | 88 |
89 } // namespace WebCore | 89 } // namespace WebCore |
90 | 90 |
91 #endif // NavigatorGamepad_h | 91 #endif // NavigatorGamepad_h |
OLD | NEW |