OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebUSBDeviceFilter_h |
| 6 #define WebUSBDeviceFilter_h |
| 7 |
| 8 #include "public/platform/WebCommon.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 // Filter which specifies what devices the API consumer wants to enumerate. |
| 13 // Properties which are not present in a filter should be treated as wildcards. |
| 14 struct WebUSBDeviceFilter { |
| 15 WebUSBDeviceFilter() {} |
| 16 |
| 17 // Members corresponding to USBDeviceFilter properties specified in the IDL. |
| 18 uint16_t vendorID; |
| 19 uint16_t productID; |
| 20 uint8_t classCode; |
| 21 uint8_t subclassCode; |
| 22 uint8_t protocolCode; |
| 23 |
| 24 // Presence flags for each of the above properties. |
| 25 bool hasVendorID : 1; |
| 26 bool hasProductID : 1; |
| 27 bool hasClassCode : 1; |
| 28 bool hasSubclassCode : 1; |
| 29 bool hasProtocolCode : 1; |
| 30 }; |
| 31 |
| 32 } // namespace blink |
| 33 |
| 34 #endif // WebUSBDeviceFilter_h |
OLD | NEW |