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

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

Issue 623263003: replace OVERRIDE and FINAL with override and final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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_alsa.h ('k') | media/midi/midi_manager_unittest.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 (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/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "media/midi/midi_manager.h" 16 #include "media/midi/midi_manager.h"
17 #include "media/midi/midi_port_info.h" 17 #include "media/midi/midi_port_info.h"
18 18
19 namespace media { 19 namespace media {
20 20
21 class MEDIA_EXPORT MidiManagerMac : public MidiManager { 21 class MEDIA_EXPORT MidiManagerMac : public MidiManager {
22 public: 22 public:
23 MidiManagerMac(); 23 MidiManagerMac();
24 virtual ~MidiManagerMac(); 24 virtual ~MidiManagerMac();
25 25
26 // MidiManager implementation. 26 // MidiManager implementation.
27 virtual void StartInitialization() OVERRIDE; 27 virtual void StartInitialization() override;
28 virtual void DispatchSendMidiData(MidiManagerClient* client, 28 virtual void DispatchSendMidiData(MidiManagerClient* client,
29 uint32 port_index, 29 uint32 port_index,
30 const std::vector<uint8>& data, 30 const std::vector<uint8>& data,
31 double timestamp) OVERRIDE; 31 double timestamp) override;
32 32
33 private: 33 private:
34 // CoreMIDI callback for MIDI data. 34 // CoreMIDI callback for MIDI data.
35 // Each callback can contain multiple packets, each of which can contain 35 // Each callback can contain multiple packets, each of which can contain
36 // multiple MIDI messages. 36 // multiple MIDI messages.
37 static void ReadMidiDispatch( 37 static void ReadMidiDispatch(
38 const MIDIPacketList *pktlist, 38 const MIDIPacketList *pktlist,
39 void *read_proc_refcon, 39 void *read_proc_refcon,
40 void *src_conn_refcon); 40 void *src_conn_refcon);
41 virtual void ReadMidi(MIDIEndpointRef source, const MIDIPacketList *pktlist); 41 virtual void ReadMidi(MIDIEndpointRef source, const MIDIPacketList *pktlist);
(...skipping 29 matching lines...) Expand all
71 71
72 // |send_thread_| is used to send MIDI data. 72 // |send_thread_| is used to send MIDI data.
73 base::Thread send_thread_; 73 base::Thread send_thread_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac); 75 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac);
76 }; 76 };
77 77
78 } // namespace media 78 } // namespace media
79 79
80 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_ 80 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « media/midi/midi_manager_alsa.h ('k') | media/midi/midi_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698