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

Issue 225513005: chrome.hid : enrich device info with Top-Level collections usages (Closed)

Created:
6 years, 8 months ago by jracle (use Gerrit)
Modified:
6 years, 8 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

chrome.hid : enrich device info with Top-Level collections usages - works on Windows and Mac. - change ongoing for Chrome OS / Linux -> will be part of separate commit BUG=359560 TBR=rockot@chromium.org TBR=scheib@chromium.org

Patch Set 1 #

Total comments: 1

Patch Set 2 : enrich device info with hid usages #

Total comments: 9

Patch Set 3 : formatted code (git cl format) #

Total comments: 46

Patch Set 4 : renaming 'parent_item' #

Total comments: 12

Patch Set 5 : refactoring + style aligment #

Total comments: 12

Patch Set 6 : move ostream operator << more DCHECKs #

Patch Set 7 : add missing comment #

Patch Set 8 : add cleanup TODO comment #

Patch Set 9 : rebase wrt master changes WRONG #

Patch Set 10 : rebasing wrt master changes #

Total comments: 4

Patch Set 11 : HidUsageAndPage construction #

Total comments: 2

Patch Set 12 : HidUsageAndPage::Page #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1225 lines, -76 lines) Patch
M chrome/browser/extensions/api/hid/hid_device_manager.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/hid.idl View 1 chunk +13 lines, -0 lines 0 comments Download
M device/device_tests.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M device/hid/hid.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M device/hid/hid_connection_linux.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -4 lines 0 comments Download
M device/hid/hid_connection_linux.cc View 1 2 chunks +1 line, -50 lines 0 comments Download
M device/hid/hid_device_info.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
M device/hid/hid_device_info.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
A device/hid/hid_report_descriptor.h View 1 2 3 4 5 9 1 chunk +38 lines, -0 lines 0 comments Download
A device/hid/hid_report_descriptor.cc View 1 2 3 4 5 9 1 chunk +61 lines, -0 lines 0 comments Download
A device/hid/hid_report_descriptor_item.h View 1 2 3 4 5 9 1 chunk +183 lines, -0 lines 0 comments Download
A device/hid/hid_report_descriptor_item.cc View 1 2 3 4 5 6 9 1 chunk +112 lines, -0 lines 0 comments Download
A device/hid/hid_report_descriptor_unittest.cc View 1 2 3 4 5 6 7 9 1 chunk +613 lines, -0 lines 0 comments Download
M device/hid/hid_service_linux.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M device/hid/hid_service_linux.cc View 1 2 3 4 5 6 7 8 9 6 chunks +93 lines, -5 lines 0 comments Download
M device/hid/hid_service_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +18 lines, -4 lines 0 comments Download
M device/hid/hid_service_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
A device/hid/hid_usage_and_page.h View 1 2 3 4 5 9 1 chunk +61 lines, -0 lines 0 comments Download
A + device/hid/hid_usage_and_page.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 63 (0 generated)
jracle (use Gerrit)
6 years, 8 months ago (2014-04-04 17:01:31 UTC) #1
scheib
I believe I'm here as an OWNER. jracl, typically add OWNERS only after reviews are ...
6 years, 8 months ago (2014-04-04 20:06:11 UTC) #2
jracle (use Gerrit)
Hi Mr Scheib, my bad, I missed how OWNERS were being handled. Indeed, the bug ...
6 years, 8 months ago (2014-04-04 21:37:44 UTC) #3
jracle (use Gerrit)
6 years, 8 months ago (2014-04-04 21:37:55 UTC) #4
jracle (use Gerrit)
Updated issue https://code.google.com/p/chromium/issues/detail?id=359560 with link to our (now publicly avaiable) doc
6 years, 8 months ago (2014-04-07 15:00:49 UTC) #5
Ken Rockot(use gerrit already)
lgtm
6 years, 8 months ago (2014-04-11 17:26:30 UTC) #6
jracle (use Gerrit)
Hi guys, I've submitted a new patch set which also targets Linux (hidraw). Best, Julien ...
6 years, 8 months ago (2014-04-15 13:56:09 UTC) #7
jracle (use Gerrit)
Please notice you'll have to possibly add udev rules in order for chrome.hid to work ...
6 years, 8 months ago (2014-04-15 14:54:20 UTC) #8
Ken Rockot(use gerrit already)
In general this looks OK to me, but there are dozens of formatting problems all ...
6 years, 8 months ago (2014-04-15 17:53:37 UTC) #9
jracle (use Gerrit)
On 2014/04/15 17:53:37, Ken Rockot wrote: > In general this looks OK to me, but ...
6 years, 8 months ago (2014-04-15 18:22:58 UTC) #10
jracle (use Gerrit)
Ken, I managed to re-format the code with 'git cl format'. Let me know if ...
6 years, 8 months ago (2014-04-15 18:35:36 UTC) #11
Ken Rockot(use gerrit already)
Hi Julien, Thanks for formatting. I have lots of comments! Please do not be discouraged ...
6 years, 8 months ago (2014-04-15 21:18:37 UTC) #12
jracle (use Gerrit)
Hi Ken, once again, thanks A LOT for your comments, and the time you spend ...
6 years, 8 months ago (2014-04-15 21:55:50 UTC) #13
jracle (use Gerrit)
Hi Ken, I replied to your comments, and submitted a new patch set as well, ...
6 years, 8 months ago (2014-04-16 16:39:19 UTC) #14
Ken Rockot(use gerrit already)
Looking good :) The biggest comment I have is regarding all the ostream operator<< overloads. ...
6 years, 8 months ago (2014-04-21 21:53:52 UTC) #15
jracle (use Gerrit)
https://codereview.chromium.org/225513005/diff/20002/device/hid/hid_report_descriptor_item.cc File device/hid/hid_report_descriptor_item.cc (right): https://codereview.chromium.org/225513005/diff/20002/device/hid/hid_report_descriptor_item.cc#newcode210 device/hid/hid_report_descriptor_item.cc:210: LongHeader* long_header = (LongHeader*)&bytes[0]; Sure, it will be equivalent ...
6 years, 8 months ago (2014-04-23 07:48:32 UTC) #16
jracle (use Gerrit)
https://codereview.chromium.org/225513005/diff/20002/device/hid/hid_report_descriptor.h File device/hid/hid_report_descriptor.h (right): https://codereview.chromium.org/225513005/diff/20002/device/hid/hid_report_descriptor.h#newcode37 device/hid/hid_report_descriptor.h:37: const HidReportDescriptor& descriptor); Since it is not idiomatic, and ...
6 years, 8 months ago (2014-04-23 13:06:47 UTC) #17
Ken Rockot(use gerrit already)
On 2014/04/23 13:06:47, jracle wrote: > https://codereview.chromium.org/225513005/diff/20002/device/hid/hid_report_descriptor.h > File device/hid/hid_report_descriptor.h (right): > > https://codereview.chromium.org/225513005/diff/20002/device/hid/hid_report_descriptor.h#newcode37 > ...
6 years, 8 months ago (2014-04-23 20:34:14 UTC) #18
Ken Rockot(use gerrit already)
On 2014/04/23 20:34:14, Ken Rockot wrote: > On 2014/04/23 13:06:47, jracle wrote: > > > ...
6 years, 8 months ago (2014-04-23 20:38:55 UTC) #19
Ken Rockot(use gerrit already)
On 2014/04/23 20:38:55, Ken Rockot wrote: > On 2014/04/23 20:34:14, Ken Rockot wrote: > > ...
6 years, 8 months ago (2014-04-23 20:44:03 UTC) #20
jracle (use Gerrit)
Ken, now I get it sorry. Anyway thanks very much for the mitigation, I just ...
6 years, 8 months ago (2014-04-23 21:13:05 UTC) #21
jracle (use Gerrit)
6 years, 8 months ago (2014-04-23 21:13:14 UTC) #22
Ken Rockot(use gerrit already)
On 2014/04/23 21:13:14, jracle wrote: Thanks!
6 years, 8 months ago (2014-04-23 21:26:41 UTC) #23
Ken Rockot(use gerrit already)
On 2014/04/23 21:13:14, jracle wrote: Thanks!
6 years, 8 months ago (2014-04-23 21:26:45 UTC) #24
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-23 21:26:57 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jracle@logitech.com/225513005/120001
6 years, 8 months ago (2014-04-23 21:27:19 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-23 21:27:45 UTC) #27
commit-bot: I haz the power
Failed to apply patch for device/hid/hid_service_linux.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 8 months ago (2014-04-23 21:27:46 UTC) #28
Ken Rockot(use gerrit already)
Ah you may need to manually rebase onto tip and reupload On Wed, Apr 23, ...
6 years, 8 months ago (2014-04-23 21:29:15 UTC) #29
Ken Rockot(use gerrit already)
On 2014/04/23 21:29:15, Ken Rockot wrote: > Ah you may need to manually rebase onto ...
6 years, 8 months ago (2014-04-23 23:19:15 UTC) #30
Ken Rockot(use gerrit already)
On 2014/04/23 23:19:15, Ken Rockot wrote: > On 2014/04/23 21:29:15, Ken Rockot wrote: > > ...
6 years, 8 months ago (2014-04-23 23:21:08 UTC) #31
jracle (use Gerrit)
Ken, I rebased my local branch on top of master, creating a new one.. Ended-up ...
6 years, 8 months ago (2014-04-24 08:24:21 UTC) #32
jracle (use Gerrit)
Attempted rebase..
6 years, 8 months ago (2014-04-24 15:05:46 UTC) #33
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-24 15:06:21 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jracle@logitech.com/225513005/140001
6 years, 8 months ago (2014-04-24 15:06:36 UTC) #35
jracle (use Gerrit)
The CQ bit was unchecked by jracle@logitech.com
6 years, 8 months ago (2014-04-24 15:12:04 UTC) #36
jracle (use Gerrit)
Ken, patch set 9 is incorrect, it does not contain last changes. See for instance ...
6 years, 8 months ago (2014-04-24 15:13:09 UTC) #37
jracle (use Gerrit)
6 years, 8 months ago (2014-04-24 15:13:16 UTC) #38
jracle (use Gerrit)
6 years, 8 months ago (2014-04-24 15:13:20 UTC) #39
Ken Rockot(use gerrit already)
On 2014/04/24 15:13:20, jracle wrote: Ok. Sorry about this. I don't know what's going wrong, ...
6 years, 8 months ago (2014-04-24 15:21:04 UTC) #40
jracle (use Gerrit)
Sorry Ken, my fault, forget about new CL, forgot to rebase --continue and aborted rebase. ...
6 years, 8 months ago (2014-04-24 15:23:18 UTC) #41
Ken Rockot(use gerrit already)
Ah OK. I was just about to say, even the new CL isn't correct. :) ...
6 years, 8 months ago (2014-04-24 15:24:18 UTC) #42
jracle (use Gerrit)
6 years, 8 months ago (2014-04-24 16:41:43 UTC) #43
Ken Rockot(use gerrit already)
On 2014/04/24 16:41:43, jracle wrote: Great! LGTM
6 years, 8 months ago (2014-04-24 16:48:16 UTC) #44
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-24 16:48:24 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jracle@logitech.com/225513005/160001
6 years, 8 months ago (2014-04-24 16:51:05 UTC) #46
Ken Rockot(use gerrit already)
https://codereview.chromium.org/225513005/diff/160001/device/hid/hid_service_mac.cc File device/hid/hid_service_mac.cc (right): https://codereview.chromium.org/225513005/diff/160001/device/hid/hid_service_mac.cc#newcode168 device/hid/hid_service_mac.cc:168: device_info.usages.push_back(usage_and_page); Please just read values into local temporaries and ...
6 years, 8 months ago (2014-04-24 17:29:50 UTC) #47
jracle (use Gerrit)
https://codereview.chromium.org/225513005/diff/160001/device/hid/hid_service_mac.cc File device/hid/hid_service_mac.cc (right): https://codereview.chromium.org/225513005/diff/160001/device/hid/hid_service_mac.cc#newcode168 device/hid/hid_service_mac.cc:168: device_info.usages.push_back(usage_and_page); OK, makes more sense. Thanks for noticing it! ...
6 years, 8 months ago (2014-04-24 19:21:27 UTC) #48
Ken Rockot(use gerrit already)
https://codereview.chromium.org/225513005/diff/170001/device/hid/hid_service_mac.cc File device/hid/hid_service_mac.cc (right): https://codereview.chromium.org/225513005/diff/170001/device/hid/hid_service_mac.cc#newcode166 device/hid/hid_service_mac.cc:166: UsagePage page; Gah. Sorry. I should have been more ...
6 years, 8 months ago (2014-04-24 19:26:17 UTC) #49
jracle (use Gerrit)
Wish I could rebuild.. retrying https://codereview.chromium.org/225513005/diff/170001/device/hid/hid_service_mac.cc File device/hid/hid_service_mac.cc (right): https://codereview.chromium.org/225513005/diff/170001/device/hid/hid_service_mac.cc#newcode166 device/hid/hid_service_mac.cc:166: UsagePage page; Gasp, wish ...
6 years, 8 months ago (2014-04-24 19:47:00 UTC) #50
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-24 19:48:09 UTC) #51
Ken Rockot(use gerrit already)
On 2014/04/24 19:47:00, jracle wrote: > Wish I could rebuild.. retrying > > https://codereview.chromium.org/225513005/diff/170001/device/hid/hid_service_mac.cc > ...
6 years, 8 months ago (2014-04-24 19:50:10 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_compile_dbg tryserver.chromium on mac_chromium_rel tryserver.chromium on win_chromium_compile_dbg ...
6 years, 8 months ago (2014-04-24 21:07:12 UTC) #53
Ken Rockot(use gerrit already)
The CQ bit was unchecked by rockot@chromium.org
6 years, 8 months ago (2014-04-24 21:09:39 UTC) #54
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-24 21:09:40 UTC) #55
Ken Rockot(use gerrit already)
The CQ bit was unchecked by rockot@chromium.org
6 years, 8 months ago (2014-04-24 21:09:44 UTC) #56
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 8 months ago (2014-04-24 21:10:05 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jracle@logitech.com/225513005/190001
6 years, 8 months ago (2014-04-24 21:13:21 UTC) #58
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 23:05:05 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 8 months ago (2014-04-24 23:05:07 UTC) #60
Ken Rockot(use gerrit already)
On 2014/04/24 23:05:07, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 8 months ago (2014-04-25 00:19:09 UTC) #61
jracle (use Gerrit)
MANY Thanks!
6 years, 8 months ago (2014-04-25 07:35:52 UTC) #62
jracle (use Gerrit)
6 years, 8 months ago (2014-04-25 07:36:17 UTC) #63

          

Powered by Google App Engine
This is Rietveld 408576698