Chromium Code Reviews| Index: Source/modules/gamepad/NavigatorGamepad.h |
| diff --git a/Source/modules/gamepad/NavigatorGamepad.h b/Source/modules/gamepad/NavigatorGamepad.h |
| index 0de60e243802ca9260f0b41096ec7b8a3896e46a..070b03345c503b0337e6a4d4adaeb7cdc9e92e76 100644 |
| --- a/Source/modules/gamepad/NavigatorGamepad.h |
| +++ b/Source/modules/gamepad/NavigatorGamepad.h |
| @@ -26,6 +26,7 @@ |
| #ifndef NavigatorGamepad_h |
| #define NavigatorGamepad_h |
| +#include "core/frame/DOMWindowProperty.h" |
| #include "heap/Handle.h" |
| #include "platform/Supplementable.h" |
| #include "public/platform/WebGamepads.h" |
| @@ -36,7 +37,7 @@ class GamepadList; |
| class Navigator; |
| class WebKitGamepadList; |
| -class NavigatorGamepad FINAL : public Supplement<Navigator> { |
| +class NavigatorGamepad FINAL : public Supplement<Navigator>, public DOMWindowProperty, public blink::WebGamepadListener { |
| public: |
| virtual ~NavigatorGamepad(); |
| static NavigatorGamepad& from(Navigator&); |
| @@ -47,8 +48,11 @@ public: |
| WebKitGamepadList* webkitGamepads(); |
| GamepadList* gamepads(); |
| + virtual void onGamepadConnected(unsigned index, const blink::WebGamepad&); |
|
Inactive
2014/03/14 19:46:08
OVERRIDE
kbalazs
2014/03/14 23:51:27
Done.
|
| + virtual void onGamepadDisconnected(unsigned index, const blink::WebGamepad&); |
|
Inactive
2014/03/14 19:46:08
OVERRIDE
kbalazs
2014/03/14 23:51:27
Done.
|
| + |
| private: |
| - NavigatorGamepad(); |
| + NavigatorGamepad(LocalFrame*); |
|
Inactive
2014/03/14 19:46:08
explicit
kbalazs
2014/03/14 23:51:27
Done.
|
| static const char* supplementName(); |
| RefPtrWillBePersistent<GamepadList> m_gamepads; |