This sets up API to release OutputSurface from LTHClient.
[chromium-blink-merge.git] / media / midi / midi_jni_registrar.cc
blob713e73c4628a90b6a1558f14a81e49a929ac8c9b
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "media/midi/midi_jni_registrar.h"
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "base/basictypes.h"
11 #include "media/midi/midi_device_android.h"
12 #include "media/midi/midi_input_port_android.h"
13 #include "media/midi/midi_manager_android.h"
14 #include "media/midi/usb_midi_device_android.h"
15 #include "media/midi/usb_midi_device_factory_android.h"
17 namespace media {
18 namespace midi {
20 static base::android::RegistrationMethod kMediaRegisteredMethods[] = {
21 {"UsbMidiDevice", UsbMidiDeviceAndroid::RegisterUsbMidiDevice},
22 {"UsbMidiDeviceFactory",
23 UsbMidiDeviceFactoryAndroid::RegisterUsbMidiDeviceFactory},
24 {"MidiDeviceAndroid", MidiDeviceAndroid::Register},
25 {"MidiManagerAndroid", MidiManagerAndroid::Register},
26 {"MidiInputPort", MidiInputPortAndroid::Register},
29 bool RegisterJni(JNIEnv* env) {
30 return base::android::RegisterNativeMethods(
31 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods));
34 } // namespace midi
35 } // namespace media