OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_WIN_H_ | 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_WIN_H_ |
6 #define MEDIA_MIDI_MIDI_MANAGER_WIN_H_ | 6 #define MEDIA_MIDI_MIDI_MANAGER_WIN_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "media/midi/midi_manager.h" | 16 #include "media/midi/midi_manager.h" |
17 | 17 |
18 namespace media { | |
19 namespace midi { | 18 namespace midi { |
20 | 19 |
21 class MidiServiceWinDelegate { | 20 class MidiServiceWinDelegate { |
22 public: | 21 public: |
23 virtual ~MidiServiceWinDelegate() {} | 22 virtual ~MidiServiceWinDelegate() {} |
24 virtual void OnCompleteInitialization(Result result) = 0; | 23 virtual void OnCompleteInitialization(Result result) = 0; |
25 virtual void OnAddInputPort(MidiPortInfo info) = 0; | 24 virtual void OnAddInputPort(MidiPortInfo info) = 0; |
26 virtual void OnAddOutputPort(MidiPortInfo info) = 0; | 25 virtual void OnAddOutputPort(MidiPortInfo info) = 0; |
27 virtual void OnSetInputPortState(uint32_t port_index, | 26 virtual void OnSetInputPortState(uint32_t port_index, |
28 MidiPortState state) = 0; | 27 MidiPortState state) = 0; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void OnReceiveMidiData(uint32_t port_index, | 65 void OnReceiveMidiData(uint32_t port_index, |
67 const std::vector<uint8_t>& data, | 66 const std::vector<uint8_t>& data, |
68 base::TimeTicks time) final; | 67 base::TimeTicks time) final; |
69 | 68 |
70 private: | 69 private: |
71 std::unique_ptr<MidiServiceWin> midi_service_; | 70 std::unique_ptr<MidiServiceWin> midi_service_; |
72 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin); | 71 DISALLOW_COPY_AND_ASSIGN(MidiManagerWin); |
73 }; | 72 }; |
74 | 73 |
75 } // namespace midi | 74 } // namespace midi |
76 } // namespace media | |
77 | 75 |
78 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_ | 76 #endif // MEDIA_MIDI_MIDI_MANAGER_WIN_H_ |
OLD | NEW |