DescriptionUpdate Gamepad.axes / GamepadButton.value to match the latest specification
Update Gamepad.axes / GamepadButton.value to match the latest specification:
https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#widl-Gamepad-axes
https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#widl-GamepadButton-value
Those attributes should be of type double as per the specification but Blink
was still using float type as in older version of the specification. This can
lead to precision problem on JavaScript side.
This CL introduces temporary ENABLE_NEW_GAMEPAD_API #ifdefs to help with the
transition. Those will be removed once the Chromium side has been updated.
R=eseidel@chromium.org, bajones@chromium.org
BUG=344556
TEST=gamepad/gamepad-events-basic.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174428
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174544
Patch Set 1 #
Total comments: 2
Patch Set 2 : Rebase #Patch Set 3 : Drop #ifdefs and unskip layout test #Patch Set 4 : Rebase #
Total comments: 1
Patch Set 5 : Add back #ifdefs #
Messages
Total messages: 25 (0 generated)
|