| OLD | NEW |
| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 uint8 alternate_setting; | 51 uint8 alternate_setting; |
| 52 uint8 class_code; | 52 uint8 class_code; |
| 53 uint8 subclass_code; | 53 uint8 subclass_code; |
| 54 uint8 protocol_code; | 54 uint8 protocol_code; |
| 55 string? interface_name; | 55 string? interface_name; |
| 56 array<EndpointInfo> endpoints; | 56 array<EndpointInfo> endpoints; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 struct InterfaceInfo { | 59 struct InterfaceInfo { |
| 60 uint8 interface_number; | 60 uint8 interface_number; |
| 61 // Interface number of the first interface in the function to which this |
| 62 // interface belongs. |
| 63 uint8 first_interface; |
| 61 array<AlternateInterfaceInfo> alternates; | 64 array<AlternateInterfaceInfo> alternates; |
| 62 }; | 65 }; |
| 63 | 66 |
| 64 struct ConfigurationInfo { | 67 struct ConfigurationInfo { |
| 65 uint8 configuration_value; | 68 uint8 configuration_value; |
| 66 string? configuration_name; | 69 string? configuration_name; |
| 67 array<InterfaceInfo> interfaces; | 70 array<InterfaceInfo> interfaces; |
| 68 }; | 71 }; |
| 69 | 72 |
| 70 struct WebUsbFunctionSubset { | 73 struct WebUsbFunctionSubset { |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // indicates no timeout: the request will remain pending indefinitely until | 279 // indicates no timeout: the request will remain pending indefinitely until |
| 277 // completed or otherwise terminated. | 280 // completed or otherwise terminated. |
| 278 | 281 |
| 279 // |packets| contains the status of each packet sent to the device, in order. | 282 // |packets| contains the status of each packet sent to the device, in order. |
| 280 IsochronousTransferOut(uint8 endpoint_number, | 283 IsochronousTransferOut(uint8 endpoint_number, |
| 281 array<uint8> data, | 284 array<uint8> data, |
| 282 array<uint32> packet_lengths, | 285 array<uint32> packet_lengths, |
| 283 uint32 timeout) | 286 uint32 timeout) |
| 284 => (array<IsochronousPacket> packets); | 287 => (array<IsochronousPacket> packets); |
| 285 }; | 288 }; |
| OLD | NEW |