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

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

Issue 1352283005: Add getConfiguration method to USBDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update webexposed/global-interface-listing-expected.txt. Created 5 years, 3 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 | « public/blink_headers.gypi ('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 dd05bf941deb310f8b110218bd5ed6733f1a6f3f..050506c90486059be8ef2439a39323316b8e6d81 100644
--- a/public/platform/modules/webusb/WebUSBDevice.h
+++ b/public/platform/modules/webusb/WebUSBDevice.h
@@ -17,6 +17,7 @@ struct WebUSBTransferInfo;
using WebUSBDeviceOpenCallbacks = WebCallbacks<void, const WebUSBError&>;
using WebUSBDeviceCloseCallbacks = WebCallbacks<void, const WebUSBError&>;
+using WebUSBDeviceGetConfigurationCallbacks = WebCallbacks<uint8_t, const WebUSBError&>;
using WebUSBDeviceSetConfigurationCallbacks = WebCallbacks<void, const WebUSBError&>;
using WebUSBDeviceClaimInterfaceCallbacks = WebCallbacks<void, const WebUSBError&>;
using WebUSBDeviceReleaseInterfaceCallbacks = WebCallbacks<void, const WebUSBError&>;
@@ -72,6 +73,10 @@ public:
// Ownership of the WebUSBDeviceCloseCallbacks is transferred to the client.
virtual void close(WebUSBDeviceCloseCallbacks*) = 0;
+ // Gets the active configuration of the device.
+ // Ownership of the WebUSBDeviceGetConfigurationCallbacks is transferred to the client.
+ virtual void getConfiguration(WebUSBDeviceGetConfigurationCallbacks*) { }
+
// Sets the active configuration for the device.
// Ownership of the WebUSBDeviceSetConfigurationCallbacks is transferred to the client.
virtual void setConfiguration(uint8_t configurationValue, WebUSBDeviceSetConfigurationCallbacks*) = 0;
« no previous file with comments | « public/blink_headers.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698