OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/android/media_jni_registrar.h" | 5 #include "media/base/android/media_jni_registrar.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/jni_registrar.h" | 9 #include "base/android/jni_registrar.h" |
10 | 10 |
11 #include "media/audio/android/audio_manager_android.h" | 11 #include "media/audio/android/audio_manager_android.h" |
12 #include "media/audio/android/audio_record_input.h" | 12 #include "media/audio/android/audio_record_input.h" |
13 #include "media/base/android/media_codec_bridge.h" | 13 #include "media/base/android/media_codec_bridge.h" |
14 #include "media/base/android/media_drm_bridge.h" | 14 #include "media/base/android/media_drm_bridge.h" |
15 #include "media/base/android/media_player_bridge.h" | 15 #include "media/base/android/media_player_bridge.h" |
16 #include "media/base/android/media_player_listener.h" | 16 #include "media/base/android/media_player_listener.h" |
17 #include "media/base/android/webaudio_media_codec_bridge.h" | 17 #include "media/base/android/webaudio_media_codec_bridge.h" |
| 18 #include "media/midi/usb_midi_device_android.h" |
| 19 #include "media/midi/usb_midi_device_factory_android.h" |
18 #include "media/video/capture/android/video_capture_device_android.h" | 20 #include "media/video/capture/android/video_capture_device_android.h" |
19 #include "media/video/capture/android/video_capture_device_factory_android.h" | 21 #include "media/video/capture/android/video_capture_device_factory_android.h" |
20 | 22 |
21 namespace media { | 23 namespace media { |
22 | 24 |
23 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { | 25 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { |
24 { "AudioManagerAndroid", | 26 { "AudioManagerAndroid", |
25 AudioManagerAndroid::RegisterAudioManager }, | 27 AudioManagerAndroid::RegisterAudioManager }, |
26 { "AudioRecordInput", | 28 { "AudioRecordInput", |
27 AudioRecordInputStream::RegisterAudioRecordInput }, | 29 AudioRecordInputStream::RegisterAudioRecordInput }, |
28 { "MediaCodecBridge", | 30 { "MediaCodecBridge", |
29 MediaCodecBridge::RegisterMediaCodecBridge }, | 31 MediaCodecBridge::RegisterMediaCodecBridge }, |
30 { "MediaDrmBridge", | 32 { "MediaDrmBridge", |
31 MediaDrmBridge::RegisterMediaDrmBridge }, | 33 MediaDrmBridge::RegisterMediaDrmBridge }, |
32 { "MediaPlayerBridge", | 34 { "MediaPlayerBridge", |
33 MediaPlayerBridge::RegisterMediaPlayerBridge }, | 35 MediaPlayerBridge::RegisterMediaPlayerBridge }, |
34 { "MediaPlayerListener", | 36 { "MediaPlayerListener", |
35 MediaPlayerListener::RegisterMediaPlayerListener }, | 37 MediaPlayerListener::RegisterMediaPlayerListener }, |
| 38 { "UsbMidiDevice", |
| 39 UsbMidiDeviceAndroid::RegisterUsbMidiDevice }, |
| 40 { "UsbMidiDeviceFactory", |
| 41 UsbMidiDeviceFactoryAndroid::RegisterUsbMidiDeviceFactory }, |
36 { "VideoCaptureDevice", | 42 { "VideoCaptureDevice", |
37 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice }, | 43 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice }, |
38 { "VideoCaptureDeviceFactory", | 44 { "VideoCaptureDeviceFactory", |
39 VideoCaptureDeviceFactoryAndroid::RegisterVideoCaptureDeviceFactory }, | 45 VideoCaptureDeviceFactoryAndroid::RegisterVideoCaptureDeviceFactory }, |
40 { "WebAudioMediaCodecBridge", | 46 { "WebAudioMediaCodecBridge", |
41 WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge }, | 47 WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge }, |
42 }; | 48 }; |
43 | 49 |
44 bool RegisterJni(JNIEnv* env) { | 50 bool RegisterJni(JNIEnv* env) { |
45 return base::android::RegisterNativeMethods( | 51 return base::android::RegisterNativeMethods( |
46 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); | 52 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); |
47 } | 53 } |
48 | 54 |
49 } // namespace media | 55 } // namespace media |
OLD | NEW |