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

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

Issue 1086073004: Web MIDI: namespace change from media to media::midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@null
Patch Set: (rebase) Created 5 years, 7 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_android.cc ('k') | media/midi/midi_manager_mac.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/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_export.h"
18 #include "media/midi/midi_manager.h" 18 #include "media/midi/midi_manager.h"
19 #include "media/midi/midi_port_info.h" 19 #include "media/midi/midi_port_info.h"
20 20
21 namespace media { 21 namespace media {
22 namespace midi {
22 23
23 class MIDI_EXPORT MidiManagerMac final : public MidiManager { 24 class MIDI_EXPORT MidiManagerMac final : public MidiManager {
24 public: 25 public:
25 MidiManagerMac(); 26 MidiManagerMac();
26 ~MidiManagerMac() override; 27 ~MidiManagerMac() override;
27 28
28 // MidiManager implementation. 29 // MidiManager implementation.
29 void StartInitialization() override; 30 void StartInitialization() override;
30 void DispatchSendMidiData(MidiManagerClient* client, 31 void DispatchSendMidiData(MidiManagerClient* client,
31 uint32 port_index, 32 uint32 port_index,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 80
80 // |client_thread_| is used to handle platform dependent operations. 81 // |client_thread_| is used to handle platform dependent operations.
81 base::Thread client_thread_; 82 base::Thread client_thread_;
82 83
83 // Sets true on destructing object to avoid starting |client_thread_| again. 84 // Sets true on destructing object to avoid starting |client_thread_| again.
84 bool shutdown_; 85 bool shutdown_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac); 87 DISALLOW_COPY_AND_ASSIGN(MidiManagerMac);
87 }; 88 };
88 89
90 } // namespace midi
89 } // namespace media 91 } // namespace media
90 92
91 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_ 93 #endif // MEDIA_MIDI_MIDI_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « media/midi/midi_manager_android.cc ('k') | media/midi/midi_manager_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698