Cleanup WK2 platform gamepad handling.
[WebKit-https.git] / Source / WebCore / ChangeLog
index 3b0e81e..0c68840 100644 (file)
@@ -1,3 +1,28 @@
+2016-08-16  Brady Eidson  <beidson@apple.com>
+
+        Cleanup WK2 platform gamepad handling.
+        https://bugs.webkit.org/show_bug.cgi?id=160871
+
+        Reviewed by Alex Christensen.
+
+        No new tests (No currently testable change in behavior).
+
+        This patch does a few things:
+        1 - Separates the concepts of "monitoring gamepads" and "monitoring gamepad inputs"
+        2 - Uses this new concept to much more cleanly handle the case where we are not currently
+            monitoring gamepad inputs because an interested WKWebView is not front and center.
+        3 - Pre-populates the "initial set of gamepads" in WebProcesses that start listening for gamepads.
+
+        * platform/gamepad/GamepadProviderClient.h:
+        (WebCore::GamepadProviderClient::setInitialConnectedGamepads):
+
+        * platform/gamepad/mac/HIDGamepadProvider.cpp:
+        (WebCore::HIDGamepadProvider::HIDGamepadProvider):
+        (WebCore::HIDGamepadProvider::stopMonitoringInput):
+        (WebCore::HIDGamepadProvider::startMonitoringInput):
+        (WebCore::HIDGamepadProvider::connectionDelayTimerFired):
+        * platform/gamepad/mac/HIDGamepadProvider.h:
+
 2016-08-16  Chris Dumez  <cdumez@apple.com>
 
         querySelector() / querySelectorAll() should always throw a SyntaxError when failing to parse selector string