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

Side by Side Diff: media/midi/midi_manager_winrt.cc

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_winrt.h ('k') | media/midi/midi_message_queue.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "media/midi/midi_manager_winrt.h" 5 #include "media/midi/midi_manager_winrt.h"
6 6
7 #pragma warning(disable : 4467) 7 #pragma warning(disable : 4467)
8 8
9 #include <initguid.h> // Required by <devpkey.h> 9 #include <initguid.h> // Required by <devpkey.h>
10 10
(...skipping 13 matching lines...) Expand all
24 #include "base/lazy_instance.h" 24 #include "base/lazy_instance.h"
25 #include "base/scoped_generic.h" 25 #include "base/scoped_generic.h"
26 #include "base/strings/string_util.h" 26 #include "base/strings/string_util.h"
27 #include "base/strings/utf_string_conversions.h" 27 #include "base/strings/utf_string_conversions.h"
28 #include "base/threading/thread_checker.h" 28 #include "base/threading/thread_checker.h"
29 #include "base/threading/thread_task_runner_handle.h" 29 #include "base/threading/thread_task_runner_handle.h"
30 #include "base/timer/timer.h" 30 #include "base/timer/timer.h"
31 #include "base/win/scoped_comptr.h" 31 #include "base/win/scoped_comptr.h"
32 #include "media/midi/midi_scheduler.h" 32 #include "media/midi/midi_scheduler.h"
33 33
34 namespace media {
35 namespace midi { 34 namespace midi {
36 namespace { 35 namespace {
37 36
38 namespace WRL = Microsoft::WRL; 37 namespace WRL = Microsoft::WRL;
39 38
40 using namespace ABI::Windows::Devices::Enumeration; 39 using namespace ABI::Windows::Devices::Enumeration;
41 using namespace ABI::Windows::Devices::Midi; 40 using namespace ABI::Windows::Devices::Midi;
42 using namespace ABI::Windows::Foundation; 41 using namespace ABI::Windows::Foundation;
43 using namespace ABI::Windows::Storage::Streams; 42 using namespace ABI::Windows::Storage::Streams;
44 43
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1039 1038
1040 void MidiManagerWinrt::OnPortManagerReady() { 1039 void MidiManagerWinrt::OnPortManagerReady() {
1041 DCHECK(com_thread_checker_->CalledOnValidThread()); 1040 DCHECK(com_thread_checker_->CalledOnValidThread());
1042 DCHECK(port_manager_ready_count_ < 2); 1041 DCHECK(port_manager_ready_count_ < 2);
1043 1042
1044 if (++port_manager_ready_count_ == 2) 1043 if (++port_manager_ready_count_ == 2)
1045 CompleteInitialization(Result::OK); 1044 CompleteInitialization(Result::OK);
1046 } 1045 }
1047 1046
1048 } // namespace midi 1047 } // namespace midi
1049 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_manager_winrt.h ('k') | media/midi/midi_message_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698