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

Issue 1264483005: Add WebUSB bindings and client interface [part 2] (Closed)

Created:
5 years, 4 months ago by Ken Rockot(use gerrit already)
Modified:
5 years, 1 month ago
Reviewers:
haraken, ortuno, dcheng, yhirano
CC:
blink-reviews, dglazkov+blink, juncai, Reilly Grant (use Gerrit)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add WebUSB bindings and client interface [part 2] This is part 2 of a multipart change set to add WebUSB bindings to Blink. In this CL, device enumeration logic is implemented and some additional getters are added to the USBDevice interface. The original full CL is here: https://codereview.chromium.org/1245363002/ The WebUSB draft spec is here: http://reillyeon.github.io/webusb/ Part 1 landed as https://src.chromium.org/viewvc/blink?revision=199777&view=revision BUG=492204 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199921

Patch Set 1 : #

Total comments: 8

Patch Set 2 : STATIC_ONLY #

Patch Set 3 : remove CallbackPromiseAdapter usage #

Total comments: 12

Patch Set 4 : enum classes! #

Total comments: 6

Patch Set 5 : +WebUSBTransferInfo; update callback signatures #

Total comments: 2

Patch Set 6 : enum class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+401 lines, -11 lines) Patch
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/webusb/USB.cpp View 1 2 2 chunks +73 lines, -1 line 0 comments Download
M Source/modules/webusb/USBDevice.h View 1 chunk +30 lines, -10 lines 0 comments Download
M Source/modules/webusb/USBDevice.idl View 1 chunk +14 lines, -0 lines 0 comments Download
A Source/modules/webusb/USBError.h View 1 chunk +32 lines, -0 lines 0 comments Download
A Source/modules/webusb/USBError.cpp View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A public/platform/modules/webusb/WebUSBDevice.h View 1 2 3 4 1 chunk +106 lines, -0 lines 0 comments Download
A public/platform/modules/webusb/WebUSBDeviceInfo.h View 1 chunk +32 lines, -0 lines 0 comments Download
A public/platform/modules/webusb/WebUSBError.h View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A public/platform/modules/webusb/WebUSBTransferInfo.h View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (8 generated)
Ken Rockot(use gerrit already)
haraken@ please review Source/ dcheng@ please review public/ Thank you!
5 years, 4 months ago (2015-07-31 03:13:17 UTC) #5
haraken
Source/ LGTM I have to have yhirano@ to take a look at the CallbackPromiseAdapter part. ...
5 years, 4 months ago (2015-07-31 08:58:25 UTC) #7
yhirano
Looks good, but if you can wait for a while, you will be able to ...
5 years, 4 months ago (2015-07-31 09:41:58 UTC) #8
Ken Rockot(use gerrit already)
Thanks. It does look like a cleaner interface, but it would be very unfortunate for ...
5 years, 4 months ago (2015-07-31 16:19:26 UTC) #9
dcheng
Just one quick thought (I'm OOO for most of the rest of today, but I'll ...
5 years, 4 months ago (2015-07-31 18:58:25 UTC) #10
Ken Rockot(use gerrit already)
Thanks https://codereview.chromium.org/1264483005/diff/100001/public/platform/modules/webusb/WebUSBDevice.h File public/platform/modules/webusb/WebUSBDevice.h (right): https://codereview.chromium.org/1264483005/diff/100001/public/platform/modules/webusb/WebUSBDevice.h#newcode31 public/platform/modules/webusb/WebUSBDevice.h:31: enum TransferDirection { On 2015/07/31 18:58:25, dcheng wrote: ...
5 years, 4 months ago (2015-07-31 19:14:28 UTC) #11
yhirano
> For now how about I instead refrain from using CallbackPromiseAdapter (done). > There are ...
5 years, 4 months ago (2015-08-03 05:28:52 UTC) #12
Ken Rockot(use gerrit already)
thanks - comments addresed https://codereview.chromium.org/1264483005/diff/120001/public/platform/modules/webusb/WebUSBDevice.h File public/platform/modules/webusb/WebUSBDevice.h (right): https://codereview.chromium.org/1264483005/diff/120001/public/platform/modules/webusb/WebUSBDevice.h#newcode17 public/platform/modules/webusb/WebUSBDevice.h:17: using WebUSBDeviceOpenCallbacks = WebCallbacks<void, WebUSBError*>; ...
5 years, 4 months ago (2015-08-03 21:49:44 UTC) #13
dcheng
lgtm FWIW, I don't think you technically need my OWNERS stamp anymore, since you added ...
5 years, 4 months ago (2015-08-03 21:59:18 UTC) #14
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1264483005/diff/140001/public/platform/modules/webusb/WebUSBTransferInfo.h File public/platform/modules/webusb/WebUSBTransferInfo.h (right): https://codereview.chromium.org/1264483005/diff/140001/public/platform/modules/webusb/WebUSBTransferInfo.h#newcode13 public/platform/modules/webusb/WebUSBTransferInfo.h:13: enum Status { On 2015/08/03 21:59:18, dcheng wrote: > ...
5 years, 4 months ago (2015-08-03 22:01:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264483005/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264483005/160001
5 years, 4 months ago (2015-08-03 22:01:36 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:160001) as https://src.chromium.org/viewvc/blink?view=rev&revision=199921
5 years, 4 months ago (2015-08-03 23:16:02 UTC) #19
ortuno
https://codereview.chromium.org/1264483005/diff/100001/Source/modules/webusb/USB.cpp File Source/modules/webusb/USB.cpp (right): https://codereview.chromium.org/1264483005/diff/100001/Source/modules/webusb/USB.cpp#newcode56 Source/modules/webusb/USB.cpp:56: WTF_MAKE_NONCOPYABLE(DeviceArray); question: why did this end up not being ...
5 years, 1 month ago (2015-10-29 01:51:02 UTC) #21
haraken
5 years, 1 month ago (2015-10-29 04:24:57 UTC) #22
Message was sent while issue was closed.
https://codereview.chromium.org/1264483005/diff/100001/Source/modules/webusb/...
File Source/modules/webusb/USB.cpp (right):

https://codereview.chromium.org/1264483005/diff/100001/Source/modules/webusb/...
Source/modules/webusb/USB.cpp:56: WTF_MAKE_NONCOPYABLE(DeviceArray);
On 2015/10/29 01:51:02, ortuno wrote:
> question: why did this end up not being STATIC_ONLY? same for USBError.

This should be STATIC_ONLY. And should remove the below "DeviceArray() =
delete;".

We should have a clang plugin support to detect this error...

Powered by Google App Engine
This is Rietveld 408576698