Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(703)

Side by Side Diff: media/midi/midi_manager_win.h

Issue 2418493002: //media/midi: use top level namespace midi rather than media.midi (Closed)
Patch Set: TAG name change s/media_midi/midi/ Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/midi/midi_manager_usb_unittest.cc ('k') | media/midi/midi_manager_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/midi/midi_manager_usb_unittest.cc ('k') | media/midi/midi_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698