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

Unified Diff: device/usb/mojo/type_converters.h

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 | « device/usb/mojo/device_impl_unittest.cc ('k') | device/usb/mojo/type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/mojo/type_converters.h
diff --git a/device/usb/mojo/type_converters.h b/device/usb/mojo/type_converters.h
index 4cee02ce8f6b5656ad50f9504298b17c0979d7a5..cb9514c1301c8014e5f14b7477015e478bd749a9 100644
--- a/device/usb/mojo/type_converters.h
+++ b/device/usb/mojo/type_converters.h
@@ -25,40 +25,6 @@ class UsbDevice;
namespace mojo {
template <>
-struct TypeConverter<device::mojom::UsbTransferDirection,
- device::UsbEndpointDirection> {
- static device::mojom::UsbTransferDirection Convert(
- const device::UsbEndpointDirection& direction);
-};
-
-template <>
-struct TypeConverter<device::mojom::UsbTransferStatus,
- device::UsbTransferStatus> {
- static device::mojom::UsbTransferStatus Convert(
- const device::UsbTransferStatus& status);
-};
-
-template <>
-struct TypeConverter<device::UsbDeviceHandle::TransferRequestType,
- device::mojom::UsbControlTransferType> {
- static device::UsbDeviceHandle::TransferRequestType Convert(
- const device::mojom::UsbControlTransferType& type);
-};
-
-template <>
-struct TypeConverter<device::UsbDeviceHandle::TransferRecipient,
- device::mojom::UsbControlTransferRecipient> {
- static device::UsbDeviceHandle::TransferRecipient Convert(
- const device::mojom::UsbControlTransferRecipient& recipient);
-};
-
-template <>
-struct TypeConverter<device::mojom::UsbEndpointType, device::UsbTransferType> {
- static device::mojom::UsbEndpointType Convert(
- const device::UsbTransferType& type);
-};
-
-template <>
struct TypeConverter<device::mojom::UsbEndpointInfoPtr,
device::UsbEndpointDescriptor> {
static device::mojom::UsbEndpointInfoPtr Convert(
« no previous file with comments | « device/usb/mojo/device_impl_unittest.cc ('k') | device/usb/mojo/type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698