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

Side by Side Diff: device/usb/public/interfaces/device.mojom

Issue 1854483002: Remove WebUSB descriptor data from device.mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_interface_associations
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module device.usb; 5 module device.usb;
6 6
7 enum OpenDeviceError { 7 enum OpenDeviceError {
8 // Opening the device succeeded. 8 // Opening the device succeeded.
9 OK, 9 OK,
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 uint8 first_interface; 63 uint8 first_interface;
64 array<AlternateInterfaceInfo> alternates; 64 array<AlternateInterfaceInfo> alternates;
65 }; 65 };
66 66
67 struct ConfigurationInfo { 67 struct ConfigurationInfo {
68 uint8 configuration_value; 68 uint8 configuration_value;
69 string? configuration_name; 69 string? configuration_name;
70 array<InterfaceInfo> interfaces; 70 array<InterfaceInfo> interfaces;
71 }; 71 };
72 72
73 struct WebUsbFunctionSubset {
74 uint8 first_interface;
75 array<string> origins;
76 };
77
78 struct WebUsbConfigurationSubset {
79 uint8 configuration_value;
80 array<string> origins;
81 array<WebUsbFunctionSubset> functions;
82 };
83
84 struct WebUsbDescriptorSet {
85 array<string> origins;
86 array<WebUsbConfigurationSubset> configurations;
87 };
88
89 struct DeviceInfo { 73 struct DeviceInfo {
90 string guid; 74 string guid;
91 uint8 usb_version_major; 75 uint8 usb_version_major;
92 uint8 usb_version_minor; 76 uint8 usb_version_minor;
93 uint8 usb_version_subminor; 77 uint8 usb_version_subminor;
94 uint8 class_code; 78 uint8 class_code;
95 uint8 subclass_code; 79 uint8 subclass_code;
96 uint8 protocol_code; 80 uint8 protocol_code;
97 uint16 vendor_id; 81 uint16 vendor_id;
98 uint16 product_id; 82 uint16 product_id;
99 uint8 device_version_major; 83 uint8 device_version_major;
100 uint8 device_version_minor; 84 uint8 device_version_minor;
101 uint8 device_version_subminor; 85 uint8 device_version_subminor;
102 string? manufacturer_name; 86 string? manufacturer_name;
103 string? product_name; 87 string? product_name;
104 string? serial_number; 88 string? serial_number;
105 uint8 active_configuration; 89 uint8 active_configuration;
106 array<ConfigurationInfo> configurations; 90 array<ConfigurationInfo> configurations;
107 WebUsbDescriptorSet? webusb_allowed_origins;
108 }; 91 };
109 92
110 struct ControlTransferParams { 93 struct ControlTransferParams {
111 ControlTransferType type; 94 ControlTransferType type;
112 ControlTransferRecipient recipient; 95 ControlTransferRecipient recipient;
113 uint8 request; 96 uint8 request;
114 uint16 value; 97 uint16 value;
115 uint16 index; 98 uint16 index;
116 }; 99 };
117 100
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // indicates no timeout: the request will remain pending indefinitely until 262 // indicates no timeout: the request will remain pending indefinitely until
280 // completed or otherwise terminated. 263 // completed or otherwise terminated.
281 264
282 // |packets| contains the status of each packet sent to the device, in order. 265 // |packets| contains the status of each packet sent to the device, in order.
283 IsochronousTransferOut(uint8 endpoint_number, 266 IsochronousTransferOut(uint8 endpoint_number,
284 array<uint8> data, 267 array<uint8> data,
285 array<uint32> packet_lengths, 268 array<uint32> packet_lengths,
286 uint32 timeout) 269 uint32 timeout)
287 => (array<IsochronousPacket> packets); 270 => (array<IsochronousPacket> packets);
288 }; 271 };
OLDNEW
« device/usb/mojo/mock_permission_provider.h ('K') | « device/usb/mojo/type_converters.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698