OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 MEDIA_MIDI_MIDI_MANAGER_MAC_H_ | 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_MAC_H_ |
6 #define MEDIA_MIDI_MIDI_MANAGER_MAC_H_ | 6 #define MEDIA_MIDI_MIDI_MANAGER_MAC_H_ |
7 | 7 |
8 #include <CoreMIDI/MIDIServices.h> | 8 #include <CoreMIDI/MIDIServices.h> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "media/midi/midi_export.h" |
17 #include "media/midi/midi_manager.h" | 18 #include "media/midi/midi_manager.h" |
18 #include "media/midi/midi_port_info.h" | 19 #include "media/midi/midi_port_info.h" |
19 | 20 |
20 namespace media { | 21 namespace media { |
21 | 22 |
22 class MEDIA_EXPORT MidiManagerMac final : public MidiManager { | 23 class MIDI_EXPORT MidiManagerMac final : public MidiManager { |
23 public: | 24 public: |
24 MidiManagerMac(); | 25 MidiManagerMac(); |
25 ~MidiManagerMac() override; | 26 ~MidiManagerMac() override; |
26 | 27 |
27 // MidiManager implementation. | 28 // MidiManager implementation. |
28 void StartInitialization() override; | 29 void StartInitialization() override; |
29 void DispatchSendMidiData(MidiManagerClient* client, | 30 void DispatchSendMidiData(MidiManagerClient* client, |
30 uint32 port_index, | 31 uint32 port_index, |
31 const std::vector<uint8>& data, | 32 const std::vector<uint8>& data, |
32 double timestamp) override; | 33 double timestamp) override; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 82 |
82 // Sets true on destructing object to avoid starting |client_thread_| again. | 83 // Sets true on destructing object to avoid starting |client_thread_| again. |
83 bool shutdown_; | 84 bool shutdown_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac); | 86 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac); |
86 }; | 87 }; |
87 | 88 |
88 } // namespace media | 89 } // namespace media |
89 | 90 |
90 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_ | 91 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_ |
OLD | NEW |