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

Unified Diff: device/usb/public/interfaces/device.mojom

Issue 1784733002: Track USB device configuration state in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink_open_state
Patch Set: Rebased. Created 4 years, 9 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/type_converters.cc ('k') | device/usb/usb_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/public/interfaces/device.mojom
diff --git a/device/usb/public/interfaces/device.mojom b/device/usb/public/interfaces/device.mojom
index de7bd5fb148e87d44187f6becd8dd4a356c42e1a..4b65a1141a12d5f06d735cdbf79695bc07fdb72c 100644
--- a/device/usb/public/interfaces/device.mojom
+++ b/device/usb/public/interfaces/device.mojom
@@ -99,6 +99,7 @@ struct DeviceInfo {
string? manufacturer_name;
string? product_name;
string? serial_number;
+ uint8 active_configuration;
array<ConfigurationInfo> configurations;
WebUsbDescriptorSet? webusb_allowed_origins;
};
@@ -153,10 +154,6 @@ interface Device {
// including the set of all available device configurations.
GetDeviceInfo() => (DeviceInfo? info);
- // Retrieves the |configuration_value| of the device's currently active
- // configuration. Will return 0 if the device is unconfigured.
- GetConfiguration() => (uint8 value);
-
// Opens the device. Methods below require the device be opened first.
Open() => (OpenDeviceError error);
« no previous file with comments | « device/usb/mojo/type_converters.cc ('k') | device/usb/usb_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698