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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp

Issue 2821813002: Use Mojo enum types in the C++ USB interface (Closed)
Patch Set: Fix up //device/usb dependencies in //extensions/browser/api Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/usb/resources/webusb-test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp
diff --git a/third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp b/third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp
index 16babb28925caa88079f488c1ae3a664ef2a4b6d..81f7a50dd3a9e73738f2ffc324380f0a1739248f 100644
--- a/third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp
+++ b/third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp
@@ -9,7 +9,7 @@
#include "device/usb/public/interfaces/device.mojom-blink.h"
#include "modules/webusb/USBAlternateInterface.h"
-using device::mojom::blink::UsbEndpointType;
+using device::mojom::blink::UsbTransferType;
using device::mojom::blink::UsbTransferDirection;
namespace blink {
@@ -28,13 +28,13 @@ String ConvertDirectionToEnum(const UsbTransferDirection& direction) {
}
}
-String ConvertTypeToEnum(const UsbEndpointType& type) {
+String ConvertTypeToEnum(const UsbTransferType& type) {
switch (type) {
- case UsbEndpointType::BULK:
+ case UsbTransferType::BULK:
return "bulk";
- case UsbEndpointType::INTERRUPT:
+ case UsbTransferType::INTERRUPT:
return "interrupt";
- case UsbEndpointType::ISOCHRONOUS:
+ case UsbTransferType::ISOCHRONOUS:
return "isochronous";
default:
ASSERT_NOT_REACHED();
« no previous file with comments | « third_party/WebKit/LayoutTests/usb/resources/webusb-test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698