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

Issue 2821813002: Use Mojo enum types in the C++ USB interface (Closed)

Created:
3 years, 8 months ago by Reilly Grant (use Gerrit)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, haraken, Aaron Boodman, devtools-reviews_chromium.org, blink-reviews, chromium-apps-reviews_chromium.org, darin (slow to review), pfeldman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use Mojo enum types in the C++ USB interface This change removes a number of type converters and will make it easier to port existing code over to the Mojo USB service in the future. BUG=699790 Review-Url: https://codereview.chromium.org/2821813002 Cr-Commit-Position: refs/heads/master@{#465513} Committed: https://chromium.googlesource.com/chromium/src/+/70e5417cbbad78ff3e5ce8dc3d21517c6f4eee69

Patch Set 1 #

Patch Set 2 : Fix circular dependency #

Total comments: 10

Patch Set 3 : Address mcasas@ comments #

Patch Set 4 : Android compiler doesn't trust exhaustive switch statements #

Patch Set 5 : Try moving header dependencies to public_deps #

Patch Set 6 : MSVC++ doesn't trust them either #

Patch Set 7 : Fix up //device/usb dependencies in //extensions/browser/api #

Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, -573 lines) Patch
M chrome/browser/devtools/device/usb/android_usb_browsertest.cc View 6 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/devtools/device/usb/android_usb_device.cc View 10 chunks +14 lines, -12 lines 0 comments Download
M device/usb/BUILD.gn View 1 2 3 4 1 chunk +10 lines, -1 line 0 comments Download
M device/usb/fake_usb_device_handle.h View 2 chunks +4 lines, -4 lines 0 comments Download
M device/usb/fake_usb_device_handle.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M device/usb/mock_usb_device_handle.h View 2 chunks +4 lines, -4 lines 0 comments Download
M device/usb/mojo/device_impl.cc View 4 chunks +7 lines, -11 lines 0 comments Download
M device/usb/mojo/device_impl_unittest.cc View 8 chunks +23 lines, -17 lines 0 comments Download
M device/usb/mojo/type_converters.h View 1 chunk +0 lines, -34 lines 0 comments Download
M device/usb/mojo/type_converters.cc View 2 chunks +3 lines, -103 lines 0 comments Download
M device/usb/public/interfaces/device.mojom View 1 2 5 chunks +13 lines, -8 lines 0 comments Download
M device/usb/usb_descriptors.h View 2 chunks +4 lines, -12 lines 0 comments Download
M device/usb/usb_descriptors.cc View 8 chunks +22 lines, -21 lines 0 comments Download
M device/usb/usb_descriptors_unittest.cc View 5 chunks +43 lines, -32 lines 0 comments Download
M device/usb/usb_device_handle.h View 5 chunks +8 lines, -17 lines 0 comments Download
M device/usb/usb_device_handle_impl.h View 3 chunks +7 lines, -7 lines 0 comments Download
M device/usb/usb_device_handle_impl.cc View 1 2 3 4 5 22 chunks +68 lines, -66 lines 0 comments Download
M device/usb/usb_device_handle_unittest.cc View 8 chunks +21 lines, -20 lines 0 comments Download
M device/usb/usb_device_handle_usbfs.h View 3 chunks +5 lines, -5 lines 0 comments Download
M device/usb/usb_device_handle_usbfs.cc View 3 13 chunks +49 lines, -43 lines 0 comments Download
M device/usb/usb_device_handle_win.h View 2 chunks +4 lines, -4 lines 0 comments Download
M device/usb/usb_device_handle_win.cc View 8 chunks +19 lines, -15 lines 0 comments Download
M device/usb/webusb_descriptors.cc View 10 chunks +21 lines, -17 lines 0 comments Download
M device/usb/webusb_descriptors_unittest.cc View 2 chunks +33 lines, -25 lines 0 comments Download
M extensions/browser/api/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/printer_provider/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/usb/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/usb/usb_api.cc View 18 chunks +48 lines, -46 lines 0 comments Download
M extensions/browser/api/usb/usb_apitest.cc View 7 chunks +24 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/usb/resources/webusb-test.js View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp View 2 chunks +5 lines, -5 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 39 (27 generated)
Reilly Grant (use Gerrit)
dgozman@, please review *android* mbarbella@, please review IPC changes mcasas@, please do a general review
3 years, 8 months ago (2017-04-15 02:58:42 UTC) #2
Reilly Grant (use Gerrit)
Fix circular dependency
3 years, 8 months ago (2017-04-15 03:18:34 UTC) #7
dgozman
devtools lgtm
3 years, 8 months ago (2017-04-17 17:03:15 UTC) #12
Martin Barbella
mojom lgtm
3 years, 8 months ago (2017-04-17 17:08:23 UTC) #13
mcasas
lgtm with some random suggestions/nits. https://codereview.chromium.org/2821813002/diff/20001/chrome/browser/devtools/device/usb/android_usb_browsertest.cc File chrome/browser/devtools/device/usb/android_usb_browsertest.cc (right): https://codereview.chromium.org/2821813002/diff/20001/chrome/browser/devtools/device/usb/android_usb_browsertest.cc#newcode224 chrome/browser/devtools/device/usb/android_usb_browsertest.cc:224: } nit: no need ...
3 years, 8 months ago (2017-04-17 17:15:16 UTC) #14
Reilly Grant (use Gerrit)
Address mcasas@ comments
3 years, 8 months ago (2017-04-17 18:05:36 UTC) #15
Reilly Grant (use Gerrit)
Android compiler doesn't trust exhaustive switch statements
3 years, 8 months ago (2017-04-17 19:17:13 UTC) #20
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2821813002/diff/20001/chrome/browser/devtools/device/usb/android_usb_browsertest.cc File chrome/browser/devtools/device/usb/android_usb_browsertest.cc (right): https://codereview.chromium.org/2821813002/diff/20001/chrome/browser/devtools/device/usb/android_usb_browsertest.cc#newcode224 chrome/browser/devtools/device/usb/android_usb_browsertest.cc:224: } On 2017/04/17 17:15:15, mcasas wrote: > nit: no ...
3 years, 8 months ago (2017-04-17 19:20:49 UTC) #21
Reilly Grant (use Gerrit)
MSVC++ doesn't trust them either
3 years, 8 months ago (2017-04-17 21:23:08 UTC) #24
Reilly Grant (use Gerrit)
Fix up //device/usb dependencies in //extensions/browser/api
3 years, 8 months ago (2017-04-17 23:34:27 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2821813002/120001
3 years, 8 months ago (2017-04-19 05:02:22 UTC) #36
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 06:44:42 UTC) #39
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/70e5417cbbad78ff3e5ce8dc3d21...

Powered by Google App Engine
This is Rietveld 408576698