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

Unified Diff: public/platform/modules/webusb/WebUSBDevice.h

Issue 1315683002: WebUSB bindings part 6 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remote USBTransferStatus.idl Created 5 years, 4 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 | « Source/modules/webusb/USBOutTransferResult.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/webusb/WebUSBDevice.h
diff --git a/public/platform/modules/webusb/WebUSBDevice.h b/public/platform/modules/webusb/WebUSBDevice.h
index cb424c0df226c06f4cdb8b8bbd70ffc39a033e0f..dd05bf941deb310f8b110218bd5ed6733f1a6f3f 100644
--- a/public/platform/modules/webusb/WebUSBDevice.h
+++ b/public/platform/modules/webusb/WebUSBDevice.h
@@ -23,9 +23,13 @@ using WebUSBDeviceReleaseInterfaceCallbacks = WebCallbacks<void, const WebUSBErr
using WebUSBDeviceResetCallbacks = WebCallbacks<void, const WebUSBError&>;
using WebUSBDeviceSetInterfaceAlternateSettingCallbacks = WebCallbacks<void, const WebUSBError&>;
using WebUSBDeviceClearHaltCallbacks = WebCallbacks<void, const WebUSBError&>;
-using WebUSBDeviceControlTransferCallbacks = WebCallbacks<WebPassOwnPtr<WebUSBTransferInfo>, const WebUSBError&>;
-using WebUSBDeviceBulkTransferCallbacks = WebCallbacks<WebPassOwnPtr<WebUSBTransferInfo>, const WebUSBError&>;
-using WebUSBDeviceInterruptTransferCallbacks = WebCallbacks<WebPassOwnPtr<WebUSBTransferInfo>, const WebUSBError&>;
+using WebUSBDeviceTransferCallbacks = WebCallbacks<WebPassOwnPtr<WebUSBTransferInfo>, const WebUSBError&>;
+
+// TODO(rockot): Eliminate these aliases once they're no longer used outside of
+// Blink code.
+using WebUSBDeviceControlTransferCallbacks = WebUSBDeviceTransferCallbacks;
+using WebUSBDeviceBulkTransferCallbacks = WebUSBDeviceTransferCallbacks;
+using WebUSBDeviceInterruptTransferCallbacks = WebUSBDeviceTransferCallbacks;
class WebUSBDevice {
public:
@@ -40,7 +44,7 @@ public:
Vendor,
};
- enum RequestRecipient {
+ enum class RequestRecipient {
Device,
Interface,
Endpoint,
« no previous file with comments | « Source/modules/webusb/USBOutTransferResult.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698