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 USBConfiguration_h | |
6 #define USBConfiguration_h | |
7 | |
8 #include "bindings/core/v8/ScriptWrappable.h" | |
9 #include "platform/heap/Handle.h" | |
10 #include "public/platform/modules/webusb/WebUSBDeviceInfo.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class USBDevice; | |
15 class USBInterface; | |
16 | |
17 class USBConfiguration | |
18 : public GarbageCollected<USBConfiguration> | |
19 , public ScriptWrappable { | |
20 DEFINE_WRAPPERTYPEINFO(); | |
21 public: | |
22 static USBConfiguration* create(const USBDevice*, size_t configurationIndex) ; | |
Reilly Grant (use Gerrit)
2015/07/28 22:51:42
configurationIndex != configurationValue so be car
Ken Rockot(use gerrit already)
2015/07/28 23:21:39
Acknowledged.
| |
23 | |
24 USBConfiguration(const USBDevice*, size_t configurationIndex); | |
25 | |
26 const WebUSBDeviceInfo::Configuration& info() const; | |
27 | |
28 uint8_t configurationValue() const; | |
29 String configurationName() const; | |
30 HeapVector<Member<USBInterface>> interfaces() const; | |
31 | |
32 DECLARE_TRACE(); | |
33 | |
34 private: | |
35 Member<const USBDevice> m_device; | |
36 size_t m_configurationIndex; | |
37 }; | |
38 | |
39 } // namespace blink | |
40 | |
41 #endif // USBConfiguration_h | |
OLD | NEW |