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

Unified Diff: media/midi/usb_midi_device_factory_android.cc

Issue 1065743003: Reland: Web MIDI: split build rules for media/midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed patch set Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/midi/usb_midi_device_android.cc ('k') | media/midi/usb_midi_output_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/usb_midi_device_factory_android.cc
diff --git a/media/midi/usb_midi_device_factory_android.cc b/media/midi/usb_midi_device_factory_android.cc
index 6302572f9332a2050b440c9b59447589a67dfd67..f0664285a58e2349e465c0b977a8410de4b3a8e9 100644
--- a/media/midi/usb_midi_device_factory_android.cc
+++ b/media/midi/usb_midi_device_factory_android.cc
@@ -30,7 +30,7 @@ UsbMidiDeviceFactoryAndroid::UsbMidiDeviceFactoryAndroid() : delegate_(NULL) {}
UsbMidiDeviceFactoryAndroid::~UsbMidiDeviceFactoryAndroid() {
JNIEnv* env = base::android::AttachCurrentThread();
if (!raw_factory_.is_null())
- Java_UsbMidiDeviceFactoryAndroid_close(
+ midi::Java_UsbMidiDeviceFactoryAndroid_close(
env, raw_factory_.obj(), base::android::GetApplicationContext());
}
@@ -40,13 +40,13 @@ void UsbMidiDeviceFactoryAndroid::EnumerateDevices(
DCHECK(!delegate_);
JNIEnv* env = base::android::AttachCurrentThread();
uintptr_t pointer = reinterpret_cast<uintptr_t>(this);
- raw_factory_.Reset(Java_UsbMidiDeviceFactoryAndroid_create(
+ raw_factory_.Reset(midi::Java_UsbMidiDeviceFactoryAndroid_create(
env, base::android::GetApplicationContext(), pointer));
delegate_ = delegate;
callback_ = callback;
- if (Java_UsbMidiDeviceFactoryAndroid_enumerateDevices(
+ if (midi::Java_UsbMidiDeviceFactoryAndroid_enumerateDevices(
env, raw_factory_.obj(), base::android::GetApplicationContext())) {
// Asynchronous operation.
return;
@@ -92,7 +92,7 @@ void UsbMidiDeviceFactoryAndroid::OnUsbMidiDeviceDetached(
}
bool UsbMidiDeviceFactoryAndroid::RegisterUsbMidiDeviceFactory(JNIEnv* env) {
- return RegisterNativesImpl(env);
+ return midi::RegisterNativesImpl(env);
}
} // namespace media
« no previous file with comments | « media/midi/usb_midi_device_android.cc ('k') | media/midi/usb_midi_output_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698