Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0d28061c864c03f4c33b490ce3ba7e6928a74f30
      
https://github.com/WebKit/WebKit/commit/0d28061c864c03f4c33b490ce3ba7e6928a74f30
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M Source/WebCore/platform/gamepad/manette/ManetteGamepadProvider.cpp
    M Source/WebCore/platform/gamepad/manette/ManetteGamepadProvider.h
    M Source/WebKit/UIProcess/WebProcessPool.cpp

  Log Message:
  -----------
  [GTK] Remove initialGamepadsConnectedTimer from ManetteGamepadProvider
https://bugs.webkit.org/show_bug.cgi?id=292661

Reviewed by Adrian Perez de Castro.

We don't really need a timer because ManetteMonitor already collects
devices on construction, so we can immediately iterate the devices to be
sent as initial devices to the web process.

* Source/WebCore/platform/gamepad/manette/ManetteGamepadProvider.cpp:
(WebCore::ManetteGamepadProvider::ManetteGamepadProvider):
(WebCore::ManetteGamepadProvider::startMonitoringGamepads):
(WebCore::ManetteGamepadProvider::stopMonitoringGamepads):
(WebCore::ManetteGamepadProvider::deviceConnected):
* Source/WebCore/platform/gamepad/manette/ManetteGamepadProvider.h:
* Source/WebKit/UIProcess/WebProcessPool.cpp:
(WebKit::WebProcessPool::startedUsingGamepads): Add the process proxy
after notifying the UIGamepadProvider so that any gamepad connected
while starting to monitor gamepads doesn't produce a GamepadConnected
message, and it's only sent as initial gamepad.

Canonical link: https://commits.webkit.org/294657@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to