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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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_input_port_android.cc ('k') | media/midi/midi_output_port_android.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 #include "media/midi/midi_manager_android.h" 5 #include "media/midi/midi_manager_android.h"
6 6
7 #include "base/android/build_info.h" 7 #include "base/android/build_info.h"
8 #include "base/android/context_utils.h" 8 #include "base/android/context_utils.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "jni/MidiManagerAndroid_jni.h" 12 #include "jni/MidiManagerAndroid_jni.h"
13 #include "media/midi/midi_device_android.h" 13 #include "media/midi/midi_device_android.h"
14 #include "media/midi/midi_manager_usb.h" 14 #include "media/midi/midi_manager_usb.h"
15 #include "media/midi/midi_output_port_android.h" 15 #include "media/midi/midi_output_port_android.h"
16 #include "media/midi/midi_switches.h" 16 #include "media/midi/midi_switches.h"
17 #include "media/midi/usb_midi_device_factory_android.h" 17 #include "media/midi/usb_midi_device_factory_android.h"
18 18
19 using base::android::JavaParamRef;
20
19 namespace media { 21 namespace media {
20 namespace midi { 22 namespace midi {
21 23
22 MidiManager* MidiManager::Create() { 24 MidiManager* MidiManager::Create() {
23 auto sdk_version = base::android::BuildInfo::GetInstance()->sdk_int(); 25 auto sdk_version = base::android::BuildInfo::GetInstance()->sdk_int();
24 if (sdk_version <= base::android::SDK_VERSION_LOLLIPOP_MR1 || 26 if (sdk_version <= base::android::SDK_VERSION_LOLLIPOP_MR1 ||
25 !base::CommandLine::ForCurrentProcess()->HasSwitch( 27 !base::CommandLine::ForCurrentProcess()->HasSwitch(
26 switches::kUseAndroidMidiApi)) { 28 switches::kUseAndroidMidiApi)) {
27 return new MidiManagerUsb(std::unique_ptr<UsbMidiDevice::Factory>( 29 return new MidiManagerUsb(std::unique_ptr<UsbMidiDevice::Factory>(
28 new UsbMidiDeviceFactoryAndroid)); 30 new UsbMidiDeviceFactoryAndroid));
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 161 }
160 devices_.push_back(device.release()); 162 devices_.push_back(device.release());
161 } 163 }
162 164
163 bool MidiManagerAndroid::Register(JNIEnv* env) { 165 bool MidiManagerAndroid::Register(JNIEnv* env) {
164 return RegisterNativesImpl(env); 166 return RegisterNativesImpl(env);
165 } 167 }
166 168
167 } // namespace midi 169 } // namespace midi
168 } // namespace media 170 } // namespace media
OLDNEW
« no previous file with comments | « media/midi/midi_input_port_android.cc ('k') | media/midi/midi_output_port_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698