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

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

Issue 1245363002: Add WebUSB bindings and client interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: iface ctors, OWNERS, rebase 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
« no previous file with comments | « Source/modules/webusb/USBInTransferResult.idl ('k') | Source/modules/webusb/USBInterface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 USBInterface_h
6 #define USBInterface_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 ExceptionState;
15 class USBAlternateInterface;
16 class USBConfiguration;
17
18 class USBInterface
19 : public GarbageCollected<USBInterface>
20 , public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO();
22 public:
23 static USBInterface* create(const USBConfiguration*, size_t interfaceIndex);
24 static USBInterface* create(const USBConfiguration*, size_t interfaceIndex, ExceptionState&);
25
26 USBInterface(const USBConfiguration*, size_t interfaceIndex);
27
28 const WebUSBDeviceInfo::Interface& info() const;
29
30 uint8_t interfaceNumber() const;
31 HeapVector<Member<USBAlternateInterface>> alternates() const;
32
33 DECLARE_TRACE();
34
35 private:
36 Member<const USBConfiguration> m_configuration;
37 size_t m_interfaceIndex;
38 };
39
40 } // namespace blink
41
42 #endif // USBInterface_h
OLDNEW
« no previous file with comments | « Source/modules/webusb/USBInTransferResult.idl ('k') | Source/modules/webusb/USBInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698