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

Issue 1781533002: Track USBDevice open state in Blink. (Closed)

Created:
4 years, 9 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 9 months ago
Reviewers:
juncai
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Track USBDevice open state in Blink. This change is the first in a series of patches that add logic to track aspects of device state such as whether it is open and what configuration has been selected in Blink in addition to whatever validation occurs in the browser. The reasons for this are two-fold: 1) It makes generating useful error messages easier because detailed error information does not need to be transmitted over IPC. 2) It allows the WebUSB API to provide attributes such as ".opened" and ".selected" on the device, configurations and interfaces. BUG=593164 Committed: https://crrev.com/3a80f8993c32aefb757e8e2ff5e1fcff3a9dbc32 Cr-Commit-Position: refs/heads/master@{#380315}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Update global interface listing. #

Patch Set 3 : Addressed juncai@'s nits. #

Patch Set 4 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -70 lines) Patch
M third_party/WebKit/LayoutTests/usb/resources/usb-helpers.js View 10 chunks +19 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/usbDevice.html View 6 chunks +98 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USB.cpp View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBDevice.h View 1 2 3 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBDevice.cpp View 1 2 3 18 chunks +139 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBDevice.idl View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (7 generated)
Reilly Grant (use Gerrit)
Please take a look.
4 years, 9 months ago (2016-03-08 23:45:14 UTC) #2
juncai
LGTM with nits. https://codereview.chromium.org/1781533002/diff/1/third_party/WebKit/Source/modules/webusb/USBDevice.cpp File third_party/WebKit/Source/modules/webusb/USBDevice.cpp (right): https://codereview.chromium.org/1781533002/diff/1/third_party/WebKit/Source/modules/webusb/USBDevice.cpp#newcode110 third_party/WebKit/Source/modules/webusb/USBDevice.cpp:110: bool m_desiredState; nit: can add some ...
4 years, 9 months ago (2016-03-09 19:33:51 UTC) #3
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1781533002/diff/1/third_party/WebKit/Source/modules/webusb/USBDevice.cpp File third_party/WebKit/Source/modules/webusb/USBDevice.cpp (right): https://codereview.chromium.org/1781533002/diff/1/third_party/WebKit/Source/modules/webusb/USBDevice.cpp#newcode110 third_party/WebKit/Source/modules/webusb/USBDevice.cpp:110: bool m_desiredState; On 2016/03/09 at 19:33:51, juncai wrote: > ...
4 years, 9 months ago (2016-03-10 00:27:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1781533002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1781533002/40001
4 years, 9 months ago (2016-03-10 00:32:27 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/142802) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 9 months ago (2016-03-10 00:35:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1781533002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1781533002/60001
4 years, 9 months ago (2016-03-10 01:02:42 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-10 02:52:15 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 02:53:38 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3a80f8993c32aefb757e8e2ff5e1fcff3a9dbc32
Cr-Commit-Position: refs/heads/master@{#380315}

Powered by Google App Engine
This is Rietveld 408576698