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

Issue 317783010: chrome.hid: enrich model with report IDs (Closed)

Created:
6 years, 6 months ago by jracle (use Gerrit)
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

chrome.hid: enrich model with report IDs - add report IDs and max report size - don't expose sensitive usages BUG=364423 R=rockot@chromium.org TESTS=run device_unittests (HidReportDescriptorTest) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281133

Patch Set 1 : Enrich JavaScript model (no incoming report filter) #

Total comments: 44

Patch Set 2 : Filter reports + refactor HID connections (ongoing) #

Total comments: 30

Patch Set 3 : Remove HidConnection2 #

Total comments: 20

Patch Set 4 : #

Total comments: 11

Patch Set 5 : Refactor CompleteRead #

Total comments: 20

Patch Set 6 : Fix ProcessReadQueue #

Total comments: 2

Patch Set 7 : Fix hid.idl comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1257 lines, -1106 lines) Patch
M chrome/browser/extensions/api/hid/hid_device_manager.h View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/hid/hid_device_manager.cc View 1 2 2 chunks +37 lines, -58 lines 0 comments Download
M chrome/common/extensions/api/hid.idl View 1 2 3 4 5 6 2 chunks +15 lines, -9 lines 0 comments Download
M device/hid/hid.gyp View 1 2 chunks +2 lines, -2 lines 0 comments Download
A device/hid/hid_collection_info.h View 1 1 chunk +29 lines, -0 lines 0 comments Download
A device/hid/hid_collection_info.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M device/hid/hid_connection.h View 1 2 3 4 2 chunks +48 lines, -13 lines 0 comments Download
M device/hid/hid_connection.cc View 1 2 3 4 2 chunks +175 lines, -5 lines 0 comments Download
M device/hid/hid_connection_linux.h View 1 2 3 chunks +20 lines, -18 lines 0 comments Download
M device/hid/hid_connection_linux.cc View 1 2 3 4 5 6 chunks +69 lines, -55 lines 0 comments Download
M device/hid/hid_connection_mac.h View 1 2 3 chunks +18 lines, -21 lines 0 comments Download
M device/hid/hid_connection_mac.cc View 1 2 3 4 5 4 chunks +58 lines, -65 lines 0 comments Download
M device/hid/hid_connection_win.h View 1 2 chunks +23 lines, -22 lines 0 comments Download
M device/hid/hid_connection_win.cc View 1 2 3 4 5 7 chunks +44 lines, -88 lines 0 comments Download
M device/hid/hid_device_info.h View 2 chunks +9 lines, -10 lines 0 comments Download
M device/hid/hid_device_info.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M device/hid/hid_report_descriptor.h View 1 2 chunks +7 lines, -4 lines 0 comments Download
M device/hid/hid_report_descriptor.cc View 1 2 chunks +141 lines, -29 lines 0 comments Download
M device/hid/hid_report_descriptor_item.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M device/hid/hid_report_descriptor_unittest.cc View 1 2 3 2 chunks +370 lines, -554 lines 0 comments Download
M device/hid/hid_service_linux.cc View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M device/hid/hid_service_mac.cc View 1 2 3 3 chunks +93 lines, -26 lines 0 comments Download
M device/hid/hid_service_win.cc View 1 chunk +40 lines, -28 lines 0 comments Download
M device/hid/hid_usage_and_page.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M device/hid/hid_usage_and_page.cc View 1 1 chunk +25 lines, -2 lines 0 comments Download
D device/hid/hid_utils_mac.h View 1 1 chunk +0 lines, -30 lines 0 comments Download
D device/hid/hid_utils_mac.cc View 1 1 chunk +0 lines, -45 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
jracle (use Gerrit)
Hi Ken, I've enriched chrome.hid with top-level collection information : report IDs + max report ...
6 years, 6 months ago (2014-06-05 11:04:14 UTC) #1
Ken Rockot(use gerrit already)
Looking totally awesome. No major comments, just lots of little things. https://codereview.chromium.org/317783010/diff/1/chrome/browser/extensions/api/hid/hid_device_manager.cc File chrome/browser/extensions/api/hid/hid_device_manager.cc (right): ...
6 years, 6 months ago (2014-06-06 20:04:44 UTC) #2
Ken Rockot(use gerrit already)
Oh also - the sensitive report filtering absolutely must be added to this CL if ...
6 years, 6 months ago (2014-06-06 20:10:22 UTC) #3
Ken Rockot(use gerrit already)
Oh also - the sensitive report filtering absolutely must be added to this CL if ...
6 years, 6 months ago (2014-06-06 20:10:23 UTC) #4
jracle (use Gerrit)
https://codereview.chromium.org/317783010/diff/1/chrome/browser/extensions/api/hid/hid_device_manager.cc File chrome/browser/extensions/api/hid/hid_device_manager.cc (right): https://codereview.chromium.org/317783010/diff/1/chrome/browser/extensions/api/hid/hid_device_manager.cc#newcode39 chrome/browser/extensions/api/hid/hid_device_manager.cc:39: OK. Though I'm a bit puzzled by this rule, ...
6 years, 6 months ago (2014-06-07 12:56:22 UTC) #5
jracle (use Gerrit)
Ken, I'll refrain myself from comitting today. I've got most the changes you request, but ...
6 years, 6 months ago (2014-06-07 14:58:46 UTC) #6
jracle (use Gerrit)
https://codereview.chromium.org/317783010/diff/1/device/hid/hid_connection_win.cc File device/hid/hid_connection_win.cc (right): https://codereview.chromium.org/317783010/diff/1/device/hid/hid_connection_win.cc#newcode169 device/hid/hid_connection_win.cc:169: expected_buffer_size -= 1; Hi Ken, today I've ben given ...
6 years, 6 months ago (2014-06-10 14:07:40 UTC) #7
Ken Rockot(use gerrit already)
On 2014/06/10 14:07:40, jracle wrote: > https://codereview.chromium.org/317783010/diff/1/device/hid/hid_connection_win.cc > File device/hid/hid_connection_win.cc (right): > > https://codereview.chromium.org/317783010/diff/1/device/hid/hid_connection_win.cc#newcode169 > ...
6 years, 6 months ago (2014-06-10 14:13:52 UTC) #8
jracle (use Gerrit)
Hi Ken, I submitted a new patch (huge one..) in which report filtering is on, ...
6 years, 6 months ago (2014-06-11 11:20:05 UTC) #9
Ken Rockot(use gerrit already)
https://codereview.chromium.org/317783010/diff/20001/chrome/common/extensions/api/hid.idl File chrome/common/extensions/api/hid.idl (right): https://codereview.chromium.org/317783010/diff/20001/chrome/common/extensions/api/hid.idl#newcode24 chrome/common/extensions/api/hid.idl:24: HidUsageAndPage usage; nit: I think I'd prefer the API ...
6 years, 6 months ago (2014-06-19 19:29:57 UTC) #10
jracle (use Gerrit)
Hi Ken, thanks for your comments, see mine. I need to look at them more ...
6 years, 6 months ago (2014-06-19 21:39:37 UTC) #11
jracle (use Gerrit)
6 years, 6 months ago (2014-06-25 15:49:16 UTC) #12
Ken Rockot(use gerrit already)
Looking really good; structure is great. I have no large change requests. Mostly documentation and ...
6 years, 5 months ago (2014-06-27 14:50:23 UTC) #13
jracle (use Gerrit)
https://codereview.chromium.org/317783010/diff/40001/chrome/common/extensions/api/hid.idl File chrome/common/extensions/api/hid.idl (right): https://codereview.chromium.org/317783010/diff/40001/chrome/common/extensions/api/hid.idl#newcode15 chrome/common/extensions/api/hid.idl:15: long usage_page; my bad. On 2014/06/27 14:50:22, Ken Rockot ...
6 years, 5 months ago (2014-06-27 20:07:07 UTC) #14
jracle (use Gerrit)
Guys, I've posted a new patch set. Thanks to review.
6 years, 5 months ago (2014-06-28 15:27:01 UTC) #15
Ken Rockot(use gerrit already)
ALMOST THERE! :D https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_connection.h File device/hid/hid_connection.h (right): https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_connection.h#newcode67 device/hid/hid_connection.h:67: // empty buffer in such case. ...
6 years, 5 months ago (2014-06-30 15:19:46 UTC) #16
jracle (use Gerrit)
https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_connection.h File device/hid/hid_connection.h (right): https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_connection.h#newcode67 device/hid/hid_connection.h:67: // empty buffer in such case. Sure. On 2014/06/30 ...
6 years, 5 months ago (2014-06-30 15:38:39 UTC) #17
Ken Rockot(use gerrit already)
https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_service_mac.cc File device/hid/hid_service_mac.cc (right): https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_service_mac.cc#newcode121 device/hid/hid_service_mac.cc:121: const_cast<void*>(CFArrayGetValueAtIndex(collections, i))); On 2014/06/30 15:38:39, jracle wrote: > Ken, ...
6 years, 5 months ago (2014-06-30 15:39:46 UTC) #18
Ken Rockot(use gerrit already)
https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_service_mac.cc File device/hid/hid_service_mac.cc (right): https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_service_mac.cc#newcode121 device/hid/hid_service_mac.cc:121: const_cast<void*>(CFArrayGetValueAtIndex(collections, i))); On 2014/06/30 15:39:45, Ken Rockot wrote: > ...
6 years, 5 months ago (2014-06-30 15:44:41 UTC) #19
jracle (use Gerrit)
https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_service_mac.cc File device/hid/hid_service_mac.cc (right): https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_service_mac.cc#newcode121 device/hid/hid_service_mac.cc:121: const_cast<void*>(CFArrayGetValueAtIndex(collections, i))); Nope.. ../../device/hid/hid_service_mac.cc:120:40: error: static_cast from 'const void ...
6 years, 5 months ago (2014-06-30 15:44:51 UTC) #20
jracle (use Gerrit)
Hi Ken, thanks for your almost-live comments. I've got to go to another meeting now, ...
6 years, 5 months ago (2014-06-30 15:52:30 UTC) #21
jracle (use Gerrit)
https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_connection_linux.cc File device/hid/hid_connection_linux.cc (right): https://codereview.chromium.org/317783010/diff/60001/device/hid/hid_connection_linux.cc#newcode223 device/hid/hid_connection_linux.cc:223: CompleteRead(report.buffer, read.callback); We might also get rid of FilterInputReport ...
6 years, 5 months ago (2014-06-30 16:00:41 UTC) #22
jracle (use Gerrit)
New patch set. Plz review. Best, Julien
6 years, 5 months ago (2014-07-01 07:56:56 UTC) #23
Ken Rockot(use gerrit already)
https://codereview.chromium.org/317783010/diff/80001/device/hid/hid_connection_linux.cc File device/hid/hid_connection_linux.cc (right): https://codereview.chromium.org/317783010/diff/80001/device/hid/hid_connection_linux.cc#newcode214 device/hid/hid_connection_linux.cc:214: pending_reads_.pop(); Don't pop() here. https://codereview.chromium.org/317783010/diff/80001/device/hid/hid_connection_linux.cc#newcode218 device/hid/hid_connection_linux.cc:218: read.callback.Run(false, report.buffer->size()); Actually, ...
6 years, 5 months ago (2014-07-01 14:55:23 UTC) #24
Ken Rockot(use gerrit already)
Also I take back part of my comment regarding unexpected report IDs - because we ...
6 years, 5 months ago (2014-07-01 14:56:43 UTC) #25
jracle (use Gerrit)
https://codereview.chromium.org/317783010/diff/80001/device/hid/hid_connection_linux.cc File device/hid/hid_connection_linux.cc (right): https://codereview.chromium.org/317783010/diff/80001/device/hid/hid_connection_linux.cc#newcode214 device/hid/hid_connection_linux.cc:214: pending_reads_.pop(); OK On 2014/07/01 14:55:23, Ken Rockot wrote: > ...
6 years, 5 months ago (2014-07-01 15:32:38 UTC) #26
Ken Rockot(use gerrit already)
https://codereview.chromium.org/317783010/diff/80001/device/hid/hid_connection_linux.cc File device/hid/hid_connection_linux.cc (right): https://codereview.chromium.org/317783010/diff/80001/device/hid/hid_connection_linux.cc#newcode218 device/hid/hid_connection_linux.cc:218: read.callback.Run(false, report.buffer->size()); On 2014/07/01 15:32:38, jracle wrote: > Sorry, ...
6 years, 5 months ago (2014-07-01 15:37:14 UTC) #27
jracle (use Gerrit)
Thanks Ken, I'll have to do a break for the soccer game (Swiss team playing ...
6 years, 5 months ago (2014-07-01 15:42:57 UTC) #28
jracle (use Gerrit)
See also my comments.. Le 1 juil. 2014 17:43, <jracle@logitech.com> a écrit : > Thanks ...
6 years, 5 months ago (2014-07-01 15:50:31 UTC) #29
jracle (use Gerrit)
6 years, 5 months ago (2014-07-02 07:52:14 UTC) #30
Ken Rockot(use gerrit already)
*drumroll please* LGTM!
6 years, 5 months ago (2014-07-02 15:24:51 UTC) #31
jracle (use Gerrit)
On 2014/07/02 15:24:51, Ken Rockot wrote: > *drumroll please* > > LGTM! Champaign! thanks
6 years, 5 months ago (2014-07-02 15:36:15 UTC) #32
jracle (use Gerrit)
The CQ bit was checked by jracle@logitech.com
6 years, 5 months ago (2014-07-02 15:42:26 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jracle@logitech.com/317783010/100001
6 years, 5 months ago (2014-07-02 15:43:33 UTC) #34
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-02 16:56:00 UTC) #35
Ken Rockot(use gerrit already)
Doh. kalman could you look at the IDL?
6 years, 5 months ago (2014-07-02 16:57:56 UTC) #36
Ken Rockot(use gerrit already)
The CQ bit was unchecked by rockot@chromium.org
6 years, 5 months ago (2014-07-02 16:58:32 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-02 16:58:56 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/77615)
6 years, 5 months ago (2014-07-02 16:58:57 UTC) #39
not at google - send to devlin
rslgtm, no idea what I'm looking at. though please take out the TODO in the ...
6 years, 5 months ago (2014-07-02 20:50:35 UTC) #40
jracle (use Gerrit)
https://codereview.chromium.org/317783010/diff/100001/chrome/common/extensions/api/hid.idl File chrome/common/extensions/api/hid.idl (right): https://codereview.chromium.org/317783010/diff/100001/chrome/common/extensions/api/hid.idl#newcode11 chrome/common/extensions/api/hid.idl:11: // |usage_page|: HID usage page identifier. Oops, good catch! ...
6 years, 5 months ago (2014-07-02 21:04:14 UTC) #41
jracle (use Gerrit)
6 years, 5 months ago (2014-07-02 21:12:57 UTC) #42
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 5 months ago (2014-07-02 23:42:41 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jracle@logitech.com/317783010/120001
6 years, 5 months ago (2014-07-02 23:43:04 UTC) #44
commit-bot: I haz the power
6 years, 5 months ago (2014-07-03 02:53:26 UTC) #45
Message was sent while issue was closed.
Change committed as 281133

Powered by Google App Engine
This is Rietveld 408576698