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

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

Issue 151343002: Web MIDI: make naming convention be consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review boliu #2 Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « media/midi/midi_manager.cc ('k') | media/midi/midi_manager_alsa.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 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 MEDIA_MIDI_MIDI_MANAGER_ALSA_H_ 5 #ifndef MEDIA_MIDI_MIDI_MANAGER_ALSA_H_
6 #define MEDIA_MIDI_MIDI_MANAGER_ALSA_H_ 6 #define MEDIA_MIDI_MIDI_MANAGER_ALSA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "media/midi/midi_manager.h" 13 #include "media/midi/midi_manager.h"
14 14
15 namespace media { 15 namespace media {
16 16
17 class MIDIManagerAlsa : public MIDIManager { 17 class MidiManagerAlsa : public MidiManager {
18 public: 18 public:
19 MIDIManagerAlsa(); 19 MidiManagerAlsa();
20 virtual ~MIDIManagerAlsa(); 20 virtual ~MidiManagerAlsa();
21 21
22 // MIDIManager implementation. 22 // MidiManager implementation.
23 virtual bool Initialize() OVERRIDE; 23 virtual bool Initialize() OVERRIDE;
24 virtual void DispatchSendMIDIData(MIDIManagerClient* client, 24 virtual void DispatchSendMidiData(MidiManagerClient* client,
25 uint32 port_index, 25 uint32 port_index,
26 const std::vector<uint8>& data, 26 const std::vector<uint8>& data,
27 double timestamp) OVERRIDE; 27 double timestamp) OVERRIDE;
28 28
29 private: 29 private:
30 class MIDIDeviceInfo; 30 class MidiDeviceInfo;
31 std::vector<scoped_refptr<MIDIDeviceInfo> > in_devices_; 31 std::vector<scoped_refptr<MidiDeviceInfo> > in_devices_;
32 std::vector<scoped_refptr<MIDIDeviceInfo> > out_devices_; 32 std::vector<scoped_refptr<MidiDeviceInfo> > out_devices_;
33 base::Thread send_thread_; 33 base::Thread send_thread_;
34 DISALLOW_COPY_AND_ASSIGN(MIDIManagerAlsa); 34 DISALLOW_COPY_AND_ASSIGN(MidiManagerAlsa);
35 }; 35 };
36 36
37 } // namespace media 37 } // namespace media
38 38
39 #endif // MEDIA_MIDI_MIDI_MANAGER_ALSA_H_ 39 #endif // MEDIA_MIDI_MIDI_MANAGER_ALSA_H_
OLDNEW
« no previous file with comments | « media/midi/midi_manager.cc ('k') | media/midi/midi_manager_alsa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698