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

Issue 165983005: Updating Gamepad API to match latest spec (Closed)

Created:
6 years, 10 months ago by bajones
Modified:
6 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, teravest+watch_chromium.org, darin-cc_chromium.org, raymes+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, binji, ihf+watch_chromium.org
Visibility:
Public.

Description

Updating Gamepad API to match latest spec BUG=344556 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253623

Patch Set 1 #

Patch Set 2 : Linux support #

Patch Set 3 : Windows support #

Patch Set 4 : ifdef-gaurds #

Total comments: 5

Patch Set 5 : Populating button pressed/value at the Chrome level #

Patch Set 6 : Refactored button state on all platforms #

Patch Set 7 : Added compile flag to enable new Blink interface #

Total comments: 3

Patch Set 8 : Reverted PPAPI interface changes #

Patch Set 9 : Addressed style feedback #

Patch Set 10 : Rebase #

Patch Set 11 : Fixed unit tests #

Total comments: 4

Patch Set 12 : Addressing bbudge@'s feedback #

Patch Set 13 : Fixed typo in GamepadProviderTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -119 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc View 1 2 3 4 5 2 chunks +13 lines, -1 line 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +39 lines, -16 lines 0 comments Download
M content/browser/gamepad/gamepad_platform_data_fetcher_win.cc View 1 2 3 4 5 6 4 chunks +23 lines, -6 lines 0 comments Download
M content/browser/gamepad/gamepad_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -4 lines 0 comments Download
M content/browser/gamepad/gamepad_standard_mappings.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -4 lines 0 comments Download
A content/browser/gamepad/gamepad_standard_mappings.cc View 1 2 3 4 5 6 7 8 1 chunk +54 lines, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_standard_mappings_linux.cc View 1 2 3 4 5 1 chunk +0 lines, -14 lines 0 comments Download
M content/browser/gamepad/gamepad_standard_mappings_mac.mm View 1 2 3 4 5 1 chunk +0 lines, -25 lines 0 comments Download
M content/browser/gamepad/gamepad_standard_mappings_win.cc View 1 2 3 4 5 6 2 chunks +6 lines, -39 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_gamepad_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -3 lines 0 comments Download
M content/common/gamepad_user_gesture.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/renderer/test_runner/gamepad_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppb_gamepad_shared.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppb_gamepad_shared.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
bajones
Working towards implementing the API as detailed in https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html This is the Chrome-side half of ...
6 years, 10 months ago (2014-02-18 23:38:03 UTC) #1
scottmg
https://codereview.chromium.org/165983005/diff/100001/content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc File content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc (right): https://codereview.chromium.org/165983005/diff/100001/content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc#newcode184 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc:184: #ifdef ENABLE_NEW_GAMEPAD_API I'm not sure I like the #ifs. ...
6 years, 10 months ago (2014-02-18 23:45:26 UTC) #2
bajones
https://codereview.chromium.org/165983005/diff/100001/content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc File content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc (right): https://codereview.chromium.org/165983005/diff/100001/content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc#newcode184 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc:184: #ifdef ENABLE_NEW_GAMEPAD_API On 2014/02/18 23:45:26, scottmg wrote: > I'm ...
6 years, 10 months ago (2014-02-18 23:54:04 UTC) #3
scottmg
https://codereview.chromium.org/165983005/diff/100001/content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc File content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc (right): https://codereview.chromium.org/165983005/diff/100001/content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc#newcode184 content/browser/gamepad/gamepad_platform_data_fetcher_linux.cc:184: #ifdef ENABLE_NEW_GAMEPAD_API On 2014/02/18 23:54:04, bajones wrote: > On ...
6 years, 10 months ago (2014-02-18 23:57:29 UTC) #4
bajones
On 2014/02/18 23:57:29, scottmg wrote: > My concern then is that we're breaking existing code, ...
6 years, 10 months ago (2014-02-19 00:04:49 UTC) #5
scottmg
On 2014/02/19 00:04:49, bajones wrote: > On 2014/02/18 23:57:29, scottmg wrote: > > My concern ...
6 years, 10 months ago (2014-02-19 00:20:39 UTC) #6
bajones
On 2014/02/19 00:20:39, scottmg wrote: > Yeah, I dunno, it's hard to call. I was ...
6 years, 10 months ago (2014-02-19 00:32:56 UTC) #7
scottmg
On 2014/02/19 00:32:56, bajones wrote: > On 2014/02/19 00:20:39, scottmg wrote: > > Yeah, I ...
6 years, 10 months ago (2014-02-19 01:35:44 UTC) #8
bajones
CL updated. This will have to land after https://codereview.chromium.org/170993002/ now, and this CL should be ...
6 years, 10 months ago (2014-02-20 00:57:02 UTC) #9
scottmg
content/ parts lgtm with those changes, not sure about ppapi parts. https://codereview.chromium.org/165983005/diff/300001/content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm File content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm (right): ...
6 years, 10 months ago (2014-02-20 01:15:12 UTC) #10
bajones
Refactored to eliminate the PPAPI interface change. I realized we don't need to do it ...
6 years, 10 months ago (2014-02-21 00:20:31 UTC) #11
scottmg
On 2014/02/21 00:20:31, bajones wrote: > Refactored to eliminate the PPAPI interface change. I realized ...
6 years, 10 months ago (2014-02-21 04:54:48 UTC) #12
bajones
brettw@ or bbudge@? Can I get some feedback on the PPAPI portions of this CL? ...
6 years, 10 months ago (2014-02-24 23:00:46 UTC) #13
bbudge
ppapi LGTM w/nits https://codereview.chromium.org/165983005/diff/500001/ppapi/shared_impl/ppb_gamepad_shared.cc File ppapi/shared_impl/ppb_gamepad_shared.cc (right): https://codereview.chromium.org/165983005/diff/500001/ppapi/shared_impl/ppb_gamepad_shared.cc#newcode29 ppapi/shared_impl/ppb_gamepad_shared.cc:29: // Can't memcpy because buttons are ...
6 years, 10 months ago (2014-02-24 23:11:05 UTC) #14
bbudge
Is the 'mapping' data filled in somewhere else? https://codereview.chromium.org/165983005/diff/500001/ppapi/shared_impl/ppb_gamepad_shared.cc File ppapi/shared_impl/ppb_gamepad_shared.cc (right): https://codereview.chromium.org/165983005/diff/500001/ppapi/shared_impl/ppb_gamepad_shared.cc#newcode32 ppapi/shared_impl/ppb_gamepad_shared.cc:32: } ...
6 years, 10 months ago (2014-02-24 23:14:51 UTC) #15
bajones
Thank you! https://codereview.chromium.org/165983005/diff/500001/ppapi/shared_impl/ppb_gamepad_shared.cc File ppapi/shared_impl/ppb_gamepad_shared.cc (right): https://codereview.chromium.org/165983005/diff/500001/ppapi/shared_impl/ppb_gamepad_shared.cc#newcode32 ppapi/shared_impl/ppb_gamepad_shared.cc:32: } On 2014/02/24 23:14:51, bbudge wrote: > ...
6 years, 10 months ago (2014-02-24 23:25:55 UTC) #16
bajones
Looks like I still need a LG on /content/shell and /content/common
6 years, 10 months ago (2014-02-24 23:31:01 UTC) #17
bajones
brettw@, jam@, or piman@, can I get a quick review on /content/shell and /content/common? Both ...
6 years, 10 months ago (2014-02-25 21:41:38 UTC) #18
jam
lgtm
6 years, 10 months ago (2014-02-26 00:15:28 UTC) #19
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 10 months ago (2014-02-26 00:20:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/165983005/520001
6 years, 10 months ago (2014-02-26 00:35:27 UTC) #21
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:31:53 UTC) #22
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-26 05:41:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/165983005/520001
6 years, 10 months ago (2014-02-26 06:03:55 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 10:17:44 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-26 10:17:45 UTC) #26
bajones
The CQ bit was checked by bajones@chromium.org
6 years, 10 months ago (2014-02-26 17:51:50 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bajones@chromium.org/165983005/540001
6 years, 10 months ago (2014-02-26 17:53:45 UTC) #28
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 23:28:37 UTC) #29
Message was sent while issue was closed.
Change committed as 253623

Powered by Google App Engine
This is Rietveld 408576698