| 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 USBDevice_h | 5 #ifndef USBDevice_h |
| 6 #define USBDevice_h | 6 #define USBDevice_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "bindings/modules/v8/UnionTypesModules.h" | 10 #include "bindings/modules/v8/UnionTypesModules.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class ScriptPromiseResolver; | 22 class ScriptPromiseResolver; |
| 23 class ScriptState; | 23 class ScriptState; |
| 24 class USBConfiguration; | 24 class USBConfiguration; |
| 25 class USBControlTransferParameters; | 25 class USBControlTransferParameters; |
| 26 | 26 |
| 27 class USBDevice | 27 class USBDevice |
| 28 : public GarbageCollectedFinalized<USBDevice> | 28 : public GarbageCollectedFinalized<USBDevice> |
| 29 , public ContextLifecycleObserver | 29 , public ContextLifecycleObserver |
| 30 , public ScriptWrappable | 30 , public ScriptWrappable |
| 31 , public PageLifecycleObserver { | 31 , public PageLifecycleObserver { |
| 32 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(USBDevice); | 32 USING_GARBAGE_COLLECTED_MIXIN(USBDevice); |
| 33 DEFINE_WRAPPERTYPEINFO(); | 33 DEFINE_WRAPPERTYPEINFO(); |
| 34 public: | 34 public: |
| 35 using WebType = OwnPtr<WebUSBDevice>; | 35 using WebType = OwnPtr<WebUSBDevice>; |
| 36 | 36 |
| 37 static USBDevice* create(PassOwnPtr<WebUSBDevice> device, ExecutionContext*
context) | 37 static USBDevice* create(PassOwnPtr<WebUSBDevice> device, ExecutionContext*
context) |
| 38 { | 38 { |
| 39 return new USBDevice(device, context); | 39 return new USBDevice(device, context); |
| 40 } | 40 } |
| 41 | 41 |
| 42 static USBDevice* take(ScriptPromiseResolver*, PassOwnPtr<WebUSBDevice>); | 42 static USBDevice* take(ScriptPromiseResolver*, PassOwnPtr<WebUSBDevice>); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 WTF::BitVector m_claimedInterfaces; | 116 WTF::BitVector m_claimedInterfaces; |
| 117 WTF::BitVector m_interfaceStateChangeInProgress; | 117 WTF::BitVector m_interfaceStateChangeInProgress; |
| 118 WTF::Vector<size_t> m_selectedAlternates; | 118 WTF::Vector<size_t> m_selectedAlternates; |
| 119 WTF::BitVector m_inEndpoints; | 119 WTF::BitVector m_inEndpoints; |
| 120 WTF::BitVector m_outEndpoints; | 120 WTF::BitVector m_outEndpoints; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif // USBDevice_h | 125 #endif // USBDevice_h |
| OLD | NEW |