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 USB_h | |
6 #define USB_h | |
7 | |
8 #include "bindings/core/v8/ScriptPromise.h" | |
9 #include "bindings/core/v8/ScriptWrappable.h" | |
10 #include "modules/webusb/USBController.h" | |
11 #include "platform/heap/Handle.h" | |
12 | |
13 namespace blink { | |
14 | |
15 class LocalFrame; | |
16 class ScriptState; | |
17 class USBDeviceEnumerationOptions; | |
18 | |
19 class USB final | |
20 : public GarbageCollectedFinalized<USB> | |
21 , public ScriptWrappable { | |
22 DEFINE_WRAPPERTYPEINFO(); | |
23 public: | |
24 static USB* create(LocalFrame& frame) | |
25 { | |
26 return new USB(frame); | |
27 } | |
28 | |
29 USB(LocalFrame& frame); | |
haraken
2015/07/30 20:17:59
Add explicit.
Ken Rockot(use gerrit already)
2015/07/30 21:10:34
Done.
| |
30 | |
31 ScriptPromise getDevices(ScriptState*, const USBDeviceEnumerationOptions&); | |
32 | |
33 DECLARE_VIRTUAL_TRACE(); | |
34 | |
35 private: | |
36 RawPtrWillBeMember<USBController> m_controller; | |
37 }; | |
38 | |
39 } // namespace blink | |
40 | |
41 #endif // USB_h | |
OLD | NEW |