| 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/webmidi/MIDIAccessor.h" | 10 #include "modules/webmidi/MIDIAccessor.h" |
| 11 #include "modules/webmidi/MIDIAccessorClient.h" | 11 #include "modules/webmidi/MIDIAccessorClient.h" |
| 12 #include "modules/webmidi/MIDIOptions.h" | 12 #include "modules/webmidi/MIDIOptions.h" |
| 13 #include "modules/webmidi/MIDIPort.h" | 13 #include "modules/webmidi/MIDIPort.h" |
| 14 #include "wtf/OwnPtr.h" | 14 #include "wtf/OwnPtr.h" |
| 15 #include "wtf/Vector.h" | 15 #include "wtf/Vector.h" |
| 16 | 16 |
| 17 namespace WebCore { | 17 namespace blink { |
| 18 | 18 |
| 19 class MIDIAccess; | 19 class MIDIAccess; |
| 20 class Navigator; | 20 class Navigator; |
| 21 class ScriptState; | 21 class ScriptState; |
| 22 | 22 |
| 23 class MIDIAccessInitializer : public ScriptPromiseResolver, public MIDIAccessorC
lient { | 23 class MIDIAccessInitializer : public ScriptPromiseResolver, public MIDIAccessorC
lient { |
| 24 public: | 24 public: |
| 25 struct PortDescriptor { | 25 struct PortDescriptor { |
| 26 String id; | 26 String id; |
| 27 String manufacturer; | 27 String manufacturer; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 MIDIAccessInitializer(ScriptState*, const MIDIOptions&); | 62 MIDIAccessInitializer(ScriptState*, const MIDIOptions&); |
| 63 | 63 |
| 64 ExecutionContext* executionContext() const; | 64 ExecutionContext* executionContext() const; |
| 65 | 65 |
| 66 OwnPtr<MIDIAccessor> m_accessor; | 66 OwnPtr<MIDIAccessor> m_accessor; |
| 67 MIDIOptions m_options; | 67 MIDIOptions m_options; |
| 68 bool m_sysexEnabled; | 68 bool m_sysexEnabled; |
| 69 Vector<PortDescriptor> m_portDescriptors; | 69 Vector<PortDescriptor> m_portDescriptors; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace WebCore | 72 } // namespace blink |
| 73 | 73 |
| 74 | 74 |
| 75 #endif // MIDIAccessInitializer_h | 75 #endif // MIDIAccessInitializer_h |
| OLD | NEW |