Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 280393004: Update Gamepad.axes / GamepadButton.value to match the latest specification (Closed)

Created:
6 years, 7 months ago by Inactive
Modified:
6 years, 7 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, abarth-chromium
Visibility:
Public.

Description

Update 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -22 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/gamepad/gamepad-events-basic.html View 3 chunks +12 lines, -7 lines 0 comments Download
M LayoutTests/gamepad/gamepad-events-basic-expected.txt View 1 chunk +8 lines, -5 lines 0 comments Download
M Source/modules/gamepad/Gamepad.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/gamepad/GamepadButton.h View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/gamepad/GamepadButton.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/gamepad/GamepadButton.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/gamepad/GamepadCommon.h View 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M Source/modules/gamepad/GamepadCommon.cpp View 3 4 1 chunk +10 lines, -1 line 0 comments Download
M public/platform/WebGamepad.h View 3 4 3 chunks +21 lines, -0 lines 0 comments Download
M public/platform/WebGamepads.h View 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Inactive
Chromium-side CL: https://codereview.chromium.org/280713004/
6 years, 7 months ago (2014-05-13 01:55:35 UTC) #1
Inactive
ping review?
6 years, 7 months ago (2014-05-19 13:33:49 UTC) #2
Inactive
+eseidel instead of abarth as I heard Adam is away.
6 years, 7 months ago (2014-05-19 13:43:51 UTC) #3
eseidel
bajones is your man.
6 years, 7 months ago (2014-05-20 03:04:05 UTC) #4
eseidel
https://codereview.chromium.org/280393004/diff/1/Source/modules/gamepad/GamepadCommon.h File Source/modules/gamepad/GamepadCommon.h (right): https://codereview.chromium.org/280393004/diff/1/Source/modules/gamepad/GamepadCommon.h#newcode57 Source/modules/gamepad/GamepadCommon.h:57: #if defined(ENABLE_NEW_GAMEPAD_API) We don't normally have compile time flags ...
6 years, 7 months ago (2014-05-20 03:05:37 UTC) #5
eseidel
I see now that the #defines are temporary. rslgtm.
6 years, 7 months ago (2014-05-20 03:05:53 UTC) #6
Inactive
bajones, is this change OK with you? Can I land this?
6 years, 7 months ago (2014-05-20 18:22:49 UTC) #7
bajones
On 2014/05/20 18:22:49, Chris Dumez wrote: > bajones, is this change OK with you? Can ...
6 years, 7 months ago (2014-05-20 18:24:55 UTC) #8
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-20 18:28:44 UTC) #9
Inactive
The CQ bit was unchecked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-20 18:28:52 UTC) #10
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-20 18:29:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/280393004/20001
6 years, 7 months ago (2014-05-20 18:29:40 UTC) #12
Inactive
The CQ bit was unchecked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-20 18:35:38 UTC) #13
Inactive
I will wait for the Chromium-side change to land first. This way I will be ...
6 years, 7 months ago (2014-05-20 18:37:57 UTC) #14
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-20 22:18:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/280393004/40001
6 years, 7 months ago (2014-05-20 22:19:12 UTC) #16
commit-bot: I haz the power
Change committed as 174428
6 years, 7 months ago (2014-05-20 23:43:47 UTC) #17
Inactive
This patch was reverted for causing a build failure on the win dbg bot. It ...
6 years, 7 months ago (2014-05-21 13:18:54 UTC) #18
Inactive
On 2014/05/21 13:18:54, Chris Dumez wrote: > This patch was reverted for causing a build ...
6 years, 7 months ago (2014-05-21 13:33:47 UTC) #19
dmichael (off chromium)
https://codereview.chromium.org/280393004/diff/60001/public/platform/WebGamepad.h File public/platform/WebGamepad.h (right): https://codereview.chromium.org/280393004/diff/60001/public/platform/WebGamepad.h#newcode34 public/platform/WebGamepad.h:34: #define ENABLE_NEW_GAMEPAD_API 1 I don't think this is safe. ...
6 years, 7 months ago (2014-05-21 16:49:31 UTC) #20
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 7 months ago (2014-05-21 17:08:11 UTC) #21
Inactive
On 2014/05/21 16:49:31, dmichael wrote: > https://codereview.chromium.org/280393004/diff/60001/public/platform/WebGamepad.h > File public/platform/WebGamepad.h (right): > > https://codereview.chromium.org/280393004/diff/60001/public/platform/WebGamepad.h#newcode34 > ...
6 years, 7 months ago (2014-05-21 17:09:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/280393004/70001
6 years, 7 months ago (2014-05-21 17:49:37 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 06:42:13 UTC) #24
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 11:20:33 UTC) #25
Message was sent while issue was closed.
Change committed as 174544

Powered by Google App Engine
This is Rietveld 408576698