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

Issue 1262163003: Add WebUSB bindings and client interface [part 1] (Closed)

Created:
5 years, 4 months ago by Ken Rockot(use gerrit already)
Modified:
5 years, 4 months ago
CC:
abarth-chromium, blink-reviews, dglazkov+blink
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 1] This is part 1 of a multipart change set to add WebUSB bindings to Blink. In this CL, a basic client interface is added for device enumeration. The original full CL is here: https://codereview.chromium.org/1245363002/ And the WebUSB draft spec is here: http://reillyeon.github.io/webusb/ BUG=492204 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199777

Patch Set 1 #

Total comments: 22

Patch Set 2 : address comments #

Total comments: 7

Patch Set 3 : address a few more comments #

Total comments: 4

Patch Set 4 : moar #

Patch Set 5 : missing unreachable return value #

Patch Set 6 : Add missing MODULES_EXPORT on USBController #

Patch Set 7 : update global-interface-listing-expected.txt #

Patch Set 8 : Handle null navigator.frame() without ASSERT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+474 lines, -0 lines) Patch
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 5 chunks +16 lines, -0 lines 0 comments Download
A Source/modules/webusb/NavigatorUSB.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A Source/modules/webusb/NavigatorUSB.cpp View 1 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download
A Source/modules/webusb/NavigatorUSB.idl View 1 1 chunk +12 lines, -0 lines 0 comments Download
A Source/modules/webusb/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A Source/modules/webusb/USB.h View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A Source/modules/webusb/USB.cpp View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
A Source/modules/webusb/USB.idl View 1 1 chunk +13 lines, -0 lines 0 comments Download
A Source/modules/webusb/USBController.h View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A Source/modules/webusb/USBController.cpp View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A Source/modules/webusb/USBDevice.h View 1 1 chunk +40 lines, -0 lines 0 comments Download
A Source/modules/webusb/USBDevice.idl View 1 1 chunk +12 lines, -0 lines 0 comments Download
A Source/modules/webusb/USBDeviceEnumerationOptions.idl View 1 1 chunk +9 lines, -0 lines 0 comments Download
A Source/modules/webusb/USBDeviceFilter.idl View 1 1 chunk +13 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
A public/platform/modules/webusb/OWNERS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A public/platform/modules/webusb/WebUSBClient.h View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download
A public/platform/modules/webusb/WebUSBDeviceEnumerationOptions.h View 1 chunk +20 lines, -0 lines 0 comments Download
A public/platform/modules/webusb/WebUSBDeviceFilter.h View 1 chunk +34 lines, -0 lines 0 comments Download
M public/web/WebFrameClient.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
Ken Rockot(use gerrit already)
Please let me know if this is still too big :) Lots of files but ...
5 years, 4 months ago (2015-07-29 17:57:08 UTC) #2
haraken
I just want to confirm, but when and where will tests be added? I cannot ...
5 years, 4 months ago (2015-07-29 18:02:43 UTC) #3
haraken
I'd be happy if you could land things more incrementally, but it's hard, I can ...
5 years, 4 months ago (2015-07-29 18:08:03 UTC) #4
Ken Rockot(use gerrit already)
On 2015/07/29 18:02:43, haraken wrote: > I just want to confirm, but when and where ...
5 years, 4 months ago (2015-07-29 19:05:19 UTC) #5
haraken
On 2015/07/29 19:05:19, Ken Rockot wrote: > On 2015/07/29 18:02:43, haraken wrote: > > I ...
5 years, 4 months ago (2015-07-29 19:30:50 UTC) #6
haraken
Mostly looks good. https://codereview.chromium.org/1262163003/diff/1/Source/modules/webusb/NavigatorUSB.cpp File Source/modules/webusb/NavigatorUSB.cpp (right): https://codereview.chromium.org/1262163003/diff/1/Source/modules/webusb/NavigatorUSB.cpp#newcode13 Source/modules/webusb/NavigatorUSB.cpp:13: // static Drop the comment. https://codereview.chromium.org/1262163003/diff/1/Source/modules/webusb/NavigatorUSB.cpp#newcode24 ...
5 years, 4 months ago (2015-07-30 11:26:52 UTC) #7
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1262163003/diff/1/Source/modules/webusb/NavigatorUSB.cpp File Source/modules/webusb/NavigatorUSB.cpp (right): https://codereview.chromium.org/1262163003/diff/1/Source/modules/webusb/NavigatorUSB.cpp#newcode13 Source/modules/webusb/NavigatorUSB.cpp:13: // static On 2015/07/30 11:26:52, haraken wrote: > > ...
5 years, 4 months ago (2015-07-30 18:06:55 UTC) #8
haraken
LGTM You need to get an approval from public/owner. https://codereview.chromium.org/1262163003/diff/20001/Source/modules/webusb/NavigatorUSB.cpp File Source/modules/webusb/NavigatorUSB.cpp (right): https://codereview.chromium.org/1262163003/diff/20001/Source/modules/webusb/NavigatorUSB.cpp#newcode41 Source/modules/webusb/NavigatorUSB.cpp:41: ...
5 years, 4 months ago (2015-07-30 20:18:00 UTC) #9
haraken
Also please add more information to the CL description so that others can follow (the ...
5 years, 4 months ago (2015-07-30 20:20:19 UTC) #10
Ken Rockot(use gerrit already)
+dcheng could you please take a look as public/ OWNER? https://codereview.chromium.org/1262163003/diff/20001/Source/modules/webusb/NavigatorUSB.cpp File Source/modules/webusb/NavigatorUSB.cpp (right): https://codereview.chromium.org/1262163003/diff/20001/Source/modules/webusb/NavigatorUSB.cpp#newcode41 ...
5 years, 4 months ago (2015-07-30 21:10:34 UTC) #13
dcheng
https://codereview.chromium.org/1262163003/diff/60001/public/platform/modules/webusb/WebUSBClient.h File public/platform/modules/webusb/WebUSBClient.h (right): https://codereview.chromium.org/1262163003/diff/60001/public/platform/modules/webusb/WebUSBClient.h#newcode17 public/platform/modules/webusb/WebUSBClient.h:17: typedef WebCallbacks<WebVector<WebUSBDevice*>*, WebUSBError*> WebUSBClientGetDevicesCallbacks; Prefer 'using' to 'typedef' for ...
5 years, 4 months ago (2015-07-30 21:18:10 UTC) #14
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1262163003/diff/60001/public/platform/modules/webusb/WebUSBClient.h File public/platform/modules/webusb/WebUSBClient.h (right): https://codereview.chromium.org/1262163003/diff/60001/public/platform/modules/webusb/WebUSBClient.h#newcode17 public/platform/modules/webusb/WebUSBClient.h:17: typedef WebCallbacks<WebVector<WebUSBDevice*>*, WebUSBError*> WebUSBClientGetDevicesCallbacks; On 2015/07/30 21:18:10, dcheng wrote: ...
5 years, 4 months ago (2015-07-30 21:20:14 UTC) #15
dcheng
lgtm
5 years, 4 months ago (2015-07-30 21:20:37 UTC) #16
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1262163003/diff/20001/Source/modules/webusb/NavigatorUSB.cpp File Source/modules/webusb/NavigatorUSB.cpp (right): https://codereview.chromium.org/1262163003/diff/20001/Source/modules/webusb/NavigatorUSB.cpp#newcode41 Source/modules/webusb/NavigatorUSB.cpp:41: if (navigator.frame()) On 2015/07/30 21:10:34, Ken Rockot wrote: > ...
5 years, 4 months ago (2015-07-30 23:23:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1262163003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1262163003/160001
5 years, 4 months ago (2015-07-30 23:24:04 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/72104)
5 years, 4 months ago (2015-07-30 23:50:59 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1262163003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1262163003/160001
5 years, 4 months ago (2015-07-31 01:10:05 UTC) #24
commit-bot: I haz the power
5 years, 4 months ago (2015-07-31 02:16:12 UTC) #25
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199777

Powered by Google App Engine
This is Rietveld 408576698