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

Unified Diff: media/midi/usb_midi_device_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/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 f62eb86eb545eb797b6b00ed75ca77aff9559668..640ef22278be020a953e4b3ea79279b184de9fdc 100644
--- a/media/midi/usb_midi_device_android.cc
+++ b/media/midi/usb_midi_device_android.cc
@@ -20,8 +20,8 @@ UsbMidiDeviceAndroid::UsbMidiDeviceAndroid(ObjectRef raw_device,
UsbMidiDeviceDelegate* delegate)
: raw_device_(raw_device), delegate_(delegate) {
JNIEnv* env = base::android::AttachCurrentThread();
- Java_UsbMidiDeviceAndroid_registerSelf(
- env, raw_device_.obj(), reinterpret_cast<jlong>(this));
+ midi::Java_UsbMidiDeviceAndroid_registerSelf(env, raw_device_.obj(),
+ reinterpret_cast<jlong>(this));
GetDescriptorsInternal();
InitDeviceInfo();
@@ -29,7 +29,7 @@ UsbMidiDeviceAndroid::UsbMidiDeviceAndroid(ObjectRef raw_device,
UsbMidiDeviceAndroid::~UsbMidiDeviceAndroid() {
JNIEnv* env = base::android::AttachCurrentThread();
- Java_UsbMidiDeviceAndroid_close(env, raw_device_.obj());
+ midi::Java_UsbMidiDeviceAndroid_close(env, raw_device_.obj());
}
std::vector<uint8> UsbMidiDeviceAndroid::GetDescriptors() {
@@ -55,8 +55,8 @@ void UsbMidiDeviceAndroid::Send(int endpoint_number,
ScopedJavaLocalRef<jbyteArray> data_to_pass =
base::android::ToJavaByteArray(env, head, data.size());
- Java_UsbMidiDeviceAndroid_send(
- env, raw_device_.obj(), endpoint_number, data_to_pass.obj());
+ midi::Java_UsbMidiDeviceAndroid_send(env, raw_device_.obj(), endpoint_number,
+ data_to_pass.obj());
}
void UsbMidiDeviceAndroid::OnData(JNIEnv* env,
@@ -72,13 +72,13 @@ void UsbMidiDeviceAndroid::OnData(JNIEnv* env,
}
bool UsbMidiDeviceAndroid::RegisterUsbMidiDevice(JNIEnv* env) {
- return RegisterNativesImpl(env);
+ return midi::RegisterNativesImpl(env);
}
void UsbMidiDeviceAndroid::GetDescriptorsInternal() {
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaLocalRef<jbyteArray> descriptors =
- Java_UsbMidiDeviceAndroid_getDescriptors(env, raw_device_.obj());
+ midi::Java_UsbMidiDeviceAndroid_getDescriptors(env, raw_device_.obj());
base::android::JavaByteArrayToByteVector(env, descriptors.obj(),
&descriptors_);
@@ -111,8 +111,8 @@ void UsbMidiDeviceAndroid::InitDeviceInfo() {
std::vector<uint8> UsbMidiDeviceAndroid::GetStringDescriptor(int index) {
JNIEnv* env = base::android::AttachCurrentThread();
base::android::ScopedJavaLocalRef<jbyteArray> descriptors =
- Java_UsbMidiDeviceAndroid_getStringDescriptor(env, raw_device_.obj(),
- index);
+ midi::Java_UsbMidiDeviceAndroid_getStringDescriptor(
+ env, raw_device_.obj(), index);
std::vector<uint8> ret;
base::android::JavaByteArrayToByteVector(env, descriptors.obj(), &ret);
« 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