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

Side by Side Diff: public/platform/modules/webusb/WebUSBDeviceFilter.h

Issue 1262163003: Add WebUSB bindings and client interface [part 1] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Handle null navigator.frame() without ASSERT Created 5 years, 4 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
(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
OLDNEW
« no previous file with comments | « public/platform/modules/webusb/WebUSBDeviceEnumerationOptions.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698