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

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

Issue 1252913014: WebUSB bindings part 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update expeced interface listing 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/USBInterface.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/WebUSBDeviceInfo.h
diff --git a/public/platform/modules/webusb/WebUSBDeviceInfo.h b/public/platform/modules/webusb/WebUSBDeviceInfo.h
index 85ea1d17fb1fe98a57b11b98393ab13000e72c19..3371a4229682a1156f789fa3f249cbbfa33a23d4 100644
--- a/public/platform/modules/webusb/WebUSBDeviceInfo.h
+++ b/public/platform/modules/webusb/WebUSBDeviceInfo.h
@@ -6,10 +6,48 @@
#define WebUSBDeviceInfo_h
#include "public/platform/WebString.h"
+#include "public/platform/WebVector.h"
+#include "public/platform/modules/webusb/WebUSBDevice.h"
namespace blink {
struct WebUSBDeviceInfo {
+ struct Interface {
+ Interface()
+ : interfaceNumber(0)
+ {
+ }
+
+ uint8_t interfaceNumber;
+ // WebVector<AlternateInterface> alternates;
+ };
+
+ struct Configuration {
+ Configuration()
+ : configurationValue(0)
+ {
+ }
+
+ uint8_t configurationValue;
+ WebString configurationName;
+ WebVector<Interface> interfaces;
+ };
+
+ WebUSBDeviceInfo()
+ : usbVersionMajor(0)
+ , usbVersionMinor(0)
+ , usbVersionSubminor(0)
+ , deviceClass(0)
+ , deviceSubclass(0)
+ , deviceProtocol(0)
+ , vendorID(0)
+ , productID(0)
+ , deviceVersionMajor(0)
+ , deviceVersionMinor(0)
+ , deviceVersionSubminor(0)
+ {
+ }
+
WebString guid;
uint8_t usbVersionMajor;
uint8_t usbVersionMinor;
@@ -25,6 +63,7 @@ struct WebUSBDeviceInfo {
WebString manufacturerName;
WebString productName;
WebString serialNumber;
+ WebVector<Configuration> configurations;
};
} // namespace blink
« no previous file with comments | « Source/modules/webusb/USBInterface.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698