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

Side by Side Diff: media/midi/usb_midi_device_factory_android.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/usb_midi_device_factory_android.h ('k') | media/midi/usb_midi_input_stream.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 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 #include "media/midi/usb_midi_device_factory_android.h" 5 #include "media/midi/usb_midi_device_factory_android.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/context_utils.h" 9 #include "base/android/context_utils.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "jni/UsbMidiDeviceFactoryAndroid_jni.h" 16 #include "jni/UsbMidiDeviceFactoryAndroid_jni.h"
17 #include "media/midi/usb_midi_device_android.h" 17 #include "media/midi/usb_midi_device_android.h"
18 18
19 using base::android::JavaParamRef; 19 using base::android::JavaParamRef;
20 20
21 namespace media {
22 namespace midi { 21 namespace midi {
23 22
24 namespace { 23 namespace {
25 24
26 using Callback = UsbMidiDevice::Factory::Callback; 25 using Callback = UsbMidiDevice::Factory::Callback;
27 26
28 } // namespace 27 } // namespace
29 28
30 UsbMidiDeviceFactoryAndroid::UsbMidiDeviceFactoryAndroid() : delegate_(NULL) {} 29 UsbMidiDeviceFactoryAndroid::UsbMidiDeviceFactoryAndroid() : delegate_(NULL) {}
31 30
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const JavaParamRef<jobject>& caller, 88 const JavaParamRef<jobject>& caller,
90 jint index) { 89 jint index) {
91 delegate_->OnDeviceDetached(index); 90 delegate_->OnDeviceDetached(index);
92 } 91 }
93 92
94 bool UsbMidiDeviceFactoryAndroid::RegisterUsbMidiDeviceFactory(JNIEnv* env) { 93 bool UsbMidiDeviceFactoryAndroid::RegisterUsbMidiDeviceFactory(JNIEnv* env) {
95 return RegisterNativesImpl(env); 94 return RegisterNativesImpl(env);
96 } 95 }
97 96
98 } // namespace midi 97 } // namespace midi
99 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/usb_midi_device_factory_android.h ('k') | media/midi/usb_midi_input_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698