OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MIDIAccessInitializer_h | 5 #ifndef MIDIAccessInitializer_h |
6 #define MIDIAccessInitializer_h | 6 #define MIDIAccessInitializer_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 void resolveSysexPermission(bool allowed); | 63 void resolveSysexPermission(bool allowed); |
64 SecurityOrigin* securityOrigin() const; | 64 SecurityOrigin* securityOrigin() const; |
65 | 65 |
66 private: | 66 private: |
67 MIDIAccessInitializer(ScriptState*, const MIDIOptions&); | 67 MIDIAccessInitializer(ScriptState*, const MIDIOptions&); |
68 | 68 |
69 ExecutionContext* executionContext() const; | 69 ExecutionContext* executionContext() const; |
70 ScriptPromise start(); | 70 ScriptPromise start(); |
71 void dispose(); | 71 void dispose(); |
72 | 72 |
73 virtual void contextDestroyed() override; | 73 void contextDestroyed() override; |
74 | 74 |
75 OwnPtr<MIDIAccessor> m_accessor; | 75 OwnPtr<MIDIAccessor> m_accessor; |
76 Vector<PortDescriptor> m_portDescriptors; | 76 Vector<PortDescriptor> m_portDescriptors; |
77 bool m_requestSysex; | 77 bool m_requestSysex; |
78 bool m_hasBeenDisposed; | 78 bool m_hasBeenDisposed; |
79 bool m_sysexPermissionResolved; | 79 bool m_sysexPermissionResolved; |
80 }; | 80 }; |
81 | 81 |
82 } // namespace blink | 82 } // namespace blink |
83 | 83 |
84 #endif // MIDIAccessInitializer_h | 84 #endif // MIDIAccessInitializer_h |
OLD | NEW |