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