Index: Source/modules/gamepad/NavigatorGamepad.h |
diff --git a/Source/modules/gamepad/NavigatorGamepad.h b/Source/modules/gamepad/NavigatorGamepad.h |
index 78cfc18f29e998d4305582e674ac0b950cec6007..4fd9c1cdde513fe0259f84ece9b7751680837d4c 100644 |
--- a/Source/modules/gamepad/NavigatorGamepad.h |
+++ b/Source/modules/gamepad/NavigatorGamepad.h |
@@ -29,9 +29,11 @@ |
#include "core/frame/DOMWindowLifecycleObserver.h" |
#include "core/frame/DOMWindowProperty.h" |
#include "core/frame/DeviceEventControllerBase.h" |
+#include "platform/AsyncMethodRunner.h" |
#include "platform/Supplementable.h" |
#include "platform/heap/Handle.h" |
#include "public/platform/WebGamepads.h" |
+#include "wtf/Deque.h" |
namespace blink { |
class WebGamepad; |
@@ -41,6 +43,7 @@ class WebGamepads; |
namespace WebCore { |
class Document; |
+class Gamepad; |
class GamepadList; |
class Navigator; |
class WebKitGamepadList; |
@@ -67,6 +70,9 @@ private: |
static const char* supplementName(); |
+ void dispatchOneEvent(); |
+ void didRemoveGamepadEventListeners(); |
+ |
// DOMWindowProperty |
virtual void willDestroyGlobalObjectInFrame() OVERRIDE; |
virtual void willDetachGlobalObjectFromFrame() OVERRIDE; |
@@ -85,6 +91,8 @@ private: |
PersistentWillBeMember<GamepadList> m_gamepads; |
PersistentWillBeMember<WebKitGamepadList> m_webkitGamepads; |
+ AsyncMethodRunner<NavigatorGamepad> m_dispatchOneEventRunner; |
+ Deque<Gamepad*> m_pendingEvents; |
abarth-chromium
2014/07/07 22:11:04
Don't we need to trace these Gamepad* so that they
|
}; |
} // namespace WebCore |