| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef DEVICE_USB_USB_DESCRIPTORS_H_ | 5 #ifndef DEVICE_USB_USB_DESCRIPTORS_H_ |
| 6 #define DEVICE_USB_USB_DESCRIPTORS_H_ | 6 #define DEVICE_USB_USB_DESCRIPTORS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 | 12 |
| 13 namespace device { | 13 namespace device { |
| 14 | 14 |
| 15 // A Java counterpart will be generated for this enum. | |
| 16 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.device.usb | |
| 17 enum UsbTransferType { | 15 enum UsbTransferType { |
| 18 USB_TRANSFER_CONTROL = 0, | 16 USB_TRANSFER_CONTROL = 0, |
| 19 USB_TRANSFER_ISOCHRONOUS, | 17 USB_TRANSFER_ISOCHRONOUS, |
| 20 USB_TRANSFER_BULK, | 18 USB_TRANSFER_BULK, |
| 21 USB_TRANSFER_INTERRUPT, | 19 USB_TRANSFER_INTERRUPT, |
| 22 }; | 20 }; |
| 23 | 21 |
| 24 // A Java counterpart will be generated for this enum. | |
| 25 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.device.usb | |
| 26 enum UsbEndpointDirection { | 22 enum UsbEndpointDirection { |
| 27 USB_DIRECTION_INBOUND = 0, | 23 USB_DIRECTION_INBOUND = 0, |
| 28 USB_DIRECTION_OUTBOUND, | 24 USB_DIRECTION_OUTBOUND, |
| 29 }; | 25 }; |
| 30 | 26 |
| 31 enum UsbSynchronizationType { | 27 enum UsbSynchronizationType { |
| 32 USB_SYNCHRONIZATION_NONE = 0, | 28 USB_SYNCHRONIZATION_NONE = 0, |
| 33 USB_SYNCHRONIZATION_ASYNCHRONOUS, | 29 USB_SYNCHRONIZATION_ASYNCHRONOUS, |
| 34 USB_SYNCHRONIZATION_ADAPTIVE, | 30 USB_SYNCHRONIZATION_ADAPTIVE, |
| 35 USB_SYNCHRONIZATION_SYNCHRONOUS, | 31 USB_SYNCHRONIZATION_SYNCHRONOUS, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 std::vector<UsbInterfaceDescriptor> interfaces; | 75 std::vector<UsbInterfaceDescriptor> interfaces; |
| 80 std::vector<uint8_t> extra_data; | 76 std::vector<uint8_t> extra_data; |
| 81 }; | 77 }; |
| 82 | 78 |
| 83 bool ParseUsbStringDescriptor(const std::vector<uint8_t>& descriptor, | 79 bool ParseUsbStringDescriptor(const std::vector<uint8_t>& descriptor, |
| 84 base::string16* output); | 80 base::string16* output); |
| 85 | 81 |
| 86 } // namespace device | 82 } // namespace device |
| 87 | 83 |
| 88 #endif // DEVICE_USB_USB_DESCRIPTORS_H_ | 84 #endif // DEVICE_USB_USB_DESCRIPTORS_H_ |
| OLD | NEW |