| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef USBInterface_h | 5 #ifndef USBInterface_h |
| 6 #define USBInterface_h | 6 #define USBInterface_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Heap.h" | 9 #include "platform/heap/Heap.h" |
| 10 #include "public/platform/modules/webusb/WebUSBDeviceInfo.h" | 10 #include "public/platform/modules/webusb/WebUSBDeviceInfo.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 DEFINE_WRAPPERTYPEINFO(); | 22 DEFINE_WRAPPERTYPEINFO(); |
| 23 public: | 23 public: |
| 24 static USBInterface* create(const USBConfiguration*, size_t interfaceIndex); | 24 static USBInterface* create(const USBConfiguration*, size_t interfaceIndex); |
| 25 static USBInterface* create(const USBConfiguration*, size_t interfaceNumber,
ExceptionState&); | 25 static USBInterface* create(const USBConfiguration*, size_t interfaceNumber,
ExceptionState&); |
| 26 | 26 |
| 27 USBInterface(const USBDevice*, size_t configurationIndex, size_t interfaceIn
dex); | 27 USBInterface(const USBDevice*, size_t configurationIndex, size_t interfaceIn
dex); |
| 28 | 28 |
| 29 const WebUSBDeviceInfo::Interface& info() const; | 29 const WebUSBDeviceInfo::Interface& info() const; |
| 30 | 30 |
| 31 uint8_t interfaceNumber() const; | 31 uint8_t interfaceNumber() const; |
| 32 USBAlternateInterface* alternate() const; |
| 32 HeapVector<Member<USBAlternateInterface>> alternates() const; | 33 HeapVector<Member<USBAlternateInterface>> alternates() const; |
| 33 bool claimed() const; | 34 bool claimed() const; |
| 34 | 35 |
| 35 DECLARE_TRACE(); | 36 DECLARE_TRACE(); |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 Member<const USBDevice> m_device; | 39 Member<const USBDevice> m_device; |
| 39 const size_t m_configurationIndex; | 40 const size_t m_configurationIndex; |
| 40 const size_t m_interfaceIndex; | 41 const size_t m_interfaceIndex; |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace blink | 44 } // namespace blink |
| 44 | 45 |
| 45 #endif // USBInterface_h | 46 #endif // USBInterface_h |
| OLD | NEW |