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

Unified Diff: device/usb/usb_device_handle_impl.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/usb_device_handle.h ('k') | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_handle_impl.h
diff --git a/device/usb/usb_device_handle_impl.h b/device/usb/usb_device_handle_impl.h
index 4d3401aad83ccbb5de8e5177bb34081deb49df19..1322e192f0b0b4e72c5bd8b0d1b1ba760987aee0 100644
--- a/device/usb/usb_device_handle_impl.h
+++ b/device/usb/usb_device_handle_impl.h
@@ -61,9 +61,9 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
void ResetDevice(const ResultCallback& callback) override;
void ClearHalt(uint8_t endpoint, const ResultCallback& callback) override;
- void ControlTransfer(UsbEndpointDirection direction,
- TransferRequestType request_type,
- TransferRecipient recipient,
+ void ControlTransfer(UsbTransferDirection direction,
+ UsbControlTransferType request_type,
+ UsbControlTransferRecipient recipient,
uint8_t request,
uint16_t value,
uint16_t index,
@@ -85,7 +85,7 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
unsigned int timeout,
const IsochronousTransferCallback& callback) override;
- void GenericTransfer(UsbEndpointDirection direction,
+ void GenericTransfer(UsbTransferDirection direction,
uint8_t endpoint_number,
scoped_refptr<net::IOBuffer> buffer,
size_t length,
@@ -141,9 +141,9 @@ class UsbDeviceHandleImpl : public UsbDeviceHandle {
uint8_t endpoint);
void ControlTransferInternal(
- UsbEndpointDirection direction,
- TransferRequestType request_type,
- TransferRecipient recipient,
+ UsbTransferDirection direction,
+ UsbControlTransferType request_type,
+ UsbControlTransferRecipient recipient,
uint8_t request,
uint16_t value,
uint16_t index,
« no previous file with comments | « device/usb/usb_device_handle.h ('k') | device/usb/usb_device_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698