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

Side by Side Diff: Source/modules/webusb/USBEndpoint.h

Issue 1245363002: Add WebUSB bindings and client interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 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);
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698