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 USBEndpoint_h | |
6 #define USBEndpoint_h | |
7 | |
8 #include "bindings/core/v8/ScriptWrappable.h" | |
9 #include "platform/heap/Heap.h" | |
10 #include "public/platform/modules/webusb/WebUSBDeviceInfo.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class USBAlternateInterface; | |
15 | |
16 class USBEndpoint | |
17 : public GarbageCollected<USBEndpoint> | |
18 , public ScriptWrappable { | |
19 DEFINE_WRAPPERTYPEINFO(); | |
20 public: | |
21 static USBEndpoint* create(const USBAlternateInterface*, size_t endpointInde x); | |
Reilly Grant (use Gerrit)
2015/07/28 22:51:43
endpointIndex != endpointNumber so be careful if y
Ken Rockot(use gerrit already)
2015/07/28 23:21:39
Acknowledged.
| |
22 | |
23 USBEndpoint(const USBAlternateInterface*, size_t endpointIndex); | |
24 | |
25 const WebUSBDeviceInfo::Endpoint& info() const; | |
26 | |
27 uint8_t endpointNumber() const; | |
28 String direction() const; | |
29 String type() const; | |
30 unsigned packetSize() const; | |
31 | |
32 DECLARE_TRACE(); | |
33 | |
34 private: | |
35 Member<const USBAlternateInterface> m_alternate; | |
36 size_t m_endpointIndex; | |
37 }; | |
38 | |
39 } // namespace blink | |
40 | |
41 #endif // USBEndpoint_h | |
OLD | NEW |