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

Issue 8799022: Add Mac implementation of data_fetcher for gamepad. (Closed)

Created:
9 years ago by scottmg
Modified:
9 years ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dpranke-watch+content_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add Mac implementation of data_fetcher for gamepad. BUG=79050 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113538

Patch Set 1 #

Patch Set 2 : working for test device now #

Patch Set 3 : some renaming per usb hid spec #

Total comments: 18

Patch Set 4 : review fixes, convert some from CF to NS #

Patch Set 5 : more NS->CF, implement remove #

Total comments: 21

Patch Set 6 : review fixes #

Total comments: 8

Patch Set 7 : no unsigned, proper scoped type, fix fmt string #

Total comments: 1

Patch Set 8 : fix indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+380 lines, -3 lines) Patch
M chrome/browser/about_flags.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gamepad/data_fetcher.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A content/browser/gamepad/data_fetcher_mac.h View 1 2 3 4 5 6 1 chunk +75 lines, -0 lines 0 comments Download
A content/browser/gamepad/data_fetcher_mac.mm View 1 2 3 4 5 6 7 1 chunk +287 lines, -0 lines 0 comments Download
M content/browser/gamepad/gamepad_provider.cc View 1 2 3 4 chunks +14 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
scottmg
Hi Nico, I know you're not an OWNERS for this folder, but would you mind ...
9 years ago (2011-12-06 04:25:24 UTC) #1
Avi (use Gerrit)
Dealing with Core Foundation is a bit clunky. We have a whole bunch of helpers ...
9 years ago (2011-12-06 04:54:19 UTC) #2
Nico
Sounds like avi wants to review this.
9 years ago (2011-12-06 16:26:20 UTC) #3
Avi (use Gerrit)
Makes more sense; I can give owner approval too. I didn't mean to step on ...
9 years ago (2011-12-06 16:32:02 UTC) #4
scottmg
On 2011/12/06 04:54:19, Avi wrote: > Dealing with Core Foundation is a bit clunky. We ...
9 years ago (2011-12-06 18:41:28 UTC) #5
scottmg
(In addition to looting, looking was also good...)
9 years ago (2011-12-06 18:48:04 UTC) #6
Avi (use Gerrit)
If you have multiple platforms sharing ifdef-ed versions inside one .cc file, then CF is ...
9 years ago (2011-12-06 22:12:20 UTC) #7
scottmg
Thanks! Using NS is much cleaner than the CF version. http://codereview.chromium.org/8799022/diff/4001/content/browser/gamepad/data_fetcher_mac.h File content/browser/gamepad/data_fetcher_mac.h (right): http://codereview.chromium.org/8799022/diff/4001/content/browser/gamepad/data_fetcher_mac.h#newcode27 ...
9 years ago (2011-12-07 01:20:49 UTC) #8
Avi (use Gerrit)
On 2011/12/07 01:20:49, scottmg wrote: > Thanks! Using NS is much cleaner than the CF ...
9 years ago (2011-12-07 04:12:23 UTC) #9
Avi (use Gerrit)
Very nice! Mostly style violations, but a few real issues. http://codereview.chromium.org/8799022/diff/9002/content/browser/gamepad/data_fetcher_mac.h File content/browser/gamepad/data_fetcher_mac.h (right): http://codereview.chromium.org/8799022/diff/9002/content/browser/gamepad/data_fetcher_mac.h#newcode19 ...
9 years ago (2011-12-07 04:12:46 UTC) #10
scottmg
Thanks for your patient Mac-n00b-review. :) http://codereview.chromium.org/8799022/diff/9002/content/browser/gamepad/data_fetcher_mac.h File content/browser/gamepad/data_fetcher_mac.h (right): http://codereview.chromium.org/8799022/diff/9002/content/browser/gamepad/data_fetcher_mac.h#newcode19 content/browser/gamepad/data_fetcher_mac.h:19: #import <Foundation/NSArray.h> On ...
9 years ago (2011-12-07 04:39:36 UTC) #11
Avi (use Gerrit)
Just found another issue. No implicit int. (This isn't the '70s :) ) You probably ...
9 years ago (2011-12-07 05:26:06 UTC) #12
Avi (use Gerrit)
http://codereview.chromium.org/8799022/diff/14003/content/browser/gamepad/data_fetcher_mac.mm File content/browser/gamepad/data_fetcher_mac.mm (right): http://codereview.chromium.org/8799022/diff/14003/content/browser/gamepad/data_fetcher_mac.mm#newcode203 content/browser/gamepad/data_fetcher_mac.mm:203: @"%@s (Vendor: %04x Product: %04x)", Not %@s. Just %@. ...
9 years ago (2011-12-07 05:39:13 UTC) #13
scottmg
http://codereview.chromium.org/8799022/diff/14003/content/browser/gamepad/data_fetcher_mac.mm File content/browser/gamepad/data_fetcher_mac.mm (right): http://codereview.chromium.org/8799022/diff/14003/content/browser/gamepad/data_fetcher_mac.mm#newcode20 content/browser/gamepad/data_fetcher_mac.mm:20: NSDictionary* DeviceMatching(unsigned usage_page, unsigned usage) { On 2011/12/07 05:26:06, ...
9 years ago (2011-12-07 19:15:12 UTC) #14
Avi (use Gerrit)
I'm no gamepad expert, but the code looks quite plausible; if it works, I have ...
9 years ago (2011-12-07 19:24:14 UTC) #15
scottmg
On 2011/12/07 19:24:14, Avi wrote: > I'm no gamepad expert, but the code looks quite ...
9 years ago (2011-12-07 19:28:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/8799022/24001
9 years ago (2011-12-07 22:07:12 UTC) #17
commit-bot: I haz the power
Try job failure for 8799022-24001 (retry) on mac_rel for step "browser_tests". It's a second try, ...
9 years ago (2011-12-08 00:10:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/8799022/24001
9 years ago (2011-12-08 00:22:41 UTC) #19
commit-bot: I haz the power
9 years ago (2011-12-08 02:36:30 UTC) #20
Change committed as 113538

Powered by Google App Engine
This is Rietveld 408576698