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

Unified Diff: media/midi/usb_midi_device_android.cc

Issue 1085843003: Revert of Web MIDI: split build rules for media/midi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/midi_unittests.isolate ('k') | media/midi/usb_midi_device_factory_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/usb_midi_device_android.cc
diff --git a/media/midi/usb_midi_device_android.cc b/media/midi/usb_midi_device_android.cc
index 37878bb637116d385120428d5234df5696c65c9a..ff58e624d3989186b03db8df4565f2a38222343f 100644
--- a/media/midi/usb_midi_device_android.cc
+++ b/media/midi/usb_midi_device_android.cc
@@ -17,19 +17,19 @@
UsbMidiDeviceDelegate* delegate)
: raw_device_(raw_device), delegate_(delegate) {
JNIEnv* env = base::android::AttachCurrentThread();
- midi::Java_UsbMidiDeviceAndroid_registerSelf(
+ Java_UsbMidiDeviceAndroid_registerSelf(
env, raw_device_.obj(), reinterpret_cast<jlong>(this));
}
UsbMidiDeviceAndroid::~UsbMidiDeviceAndroid() {
JNIEnv* env = base::android::AttachCurrentThread();
- midi::Java_UsbMidiDeviceAndroid_close(env, raw_device_.obj());
+ Java_UsbMidiDeviceAndroid_close(env, raw_device_.obj());
}
std::vector<uint8> UsbMidiDeviceAndroid::GetDescriptor() {
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaLocalRef<jbyteArray> descriptors =
- midi::Java_UsbMidiDeviceAndroid_getDescriptors(env, raw_device_.obj());
+ Java_UsbMidiDeviceAndroid_getDescriptors(env, raw_device_.obj());
std::vector<uint8> ret;
base::android::JavaByteArrayToByteVector(env, descriptors.obj(), &ret);
@@ -43,7 +43,7 @@
ScopedJavaLocalRef<jbyteArray> data_to_pass =
base::android::ToJavaByteArray(env, head, data.size());
- midi::Java_UsbMidiDeviceAndroid_send(
+ Java_UsbMidiDeviceAndroid_send(
env, raw_device_.obj(), endpoint_number, data_to_pass.obj());
}
@@ -60,7 +60,7 @@
}
bool UsbMidiDeviceAndroid::RegisterUsbMidiDevice(JNIEnv* env) {
- return midi::RegisterNativesImpl(env);
+ return RegisterNativesImpl(env);
}
} // namespace media
« no previous file with comments | « media/midi/midi_unittests.isolate ('k') | media/midi/usb_midi_device_factory_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698