DescriptionGamepad API: add support for gamepadconnected and gamepaddisconnected events
Co-authored with Brandon Jones.
This CL continues the work of updating the Gamepad API to latest spec. NavigatorGamepad implements
WebGamepadListener which is the interface chromium will talk to when dispatching gamepad events.
The implementation follows the dispatcher-controller pattern used by device motion and device orientation.
There is some difference though because the gamepad data is polled instead of pushed by the platform.
BUG=344556
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169716
Patch Set 1 #
Total comments: 22
Patch Set 2 : unviolate layering and other fixes #Patch Set 3 : fix missing check for event type #
Total comments: 10
Patch Set 4 : address comments #
Total comments: 12
Patch Set 5 : rework in terms of dispather&controller pattern used by motion and orientation #
Total comments: 2
Patch Set 6 : remaining fixes #Patch Set 7 : typo fix mistyped override #Patch Set 8 : layout fix: webexposed/global-constructors-listing #Messages
Total messages: 32 (0 generated)
|