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

Side by Side Diff: media/base/android/media_jni_registrar.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, 7 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 unified diff | Download patch
OLDNEW
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"
20 #include "media/video/capture/android/video_capture_device_android.h" 18 #include "media/video/capture/android/video_capture_device_android.h"
21 #include "media/video/capture/android/video_capture_device_factory_android.h" 19 #include "media/video/capture/android/video_capture_device_factory_android.h"
22 20
23 namespace media { 21 namespace media {
24 22
25 static base::android::RegistrationMethod kMediaRegisteredMethods[] = { 23 static base::android::RegistrationMethod kMediaRegisteredMethods[] = {
26 { "AudioManagerAndroid", 24 { "AudioManagerAndroid",
27 AudioManagerAndroid::RegisterAudioManager }, 25 AudioManagerAndroid::RegisterAudioManager },
28 { "AudioRecordInput", 26 { "AudioRecordInput",
29 AudioRecordInputStream::RegisterAudioRecordInput }, 27 AudioRecordInputStream::RegisterAudioRecordInput },
30 { "MediaCodecBridge", 28 { "MediaCodecBridge",
31 MediaCodecBridge::RegisterMediaCodecBridge }, 29 MediaCodecBridge::RegisterMediaCodecBridge },
32 { "MediaDrmBridge", 30 { "MediaDrmBridge",
33 MediaDrmBridge::RegisterMediaDrmBridge }, 31 MediaDrmBridge::RegisterMediaDrmBridge },
34 { "MediaPlayerBridge", 32 { "MediaPlayerBridge",
35 MediaPlayerBridge::RegisterMediaPlayerBridge }, 33 MediaPlayerBridge::RegisterMediaPlayerBridge },
36 { "MediaPlayerListener", 34 { "MediaPlayerListener",
37 MediaPlayerListener::RegisterMediaPlayerListener }, 35 MediaPlayerListener::RegisterMediaPlayerListener },
38 { "UsbMidiDevice",
39 UsbMidiDeviceAndroid::RegisterUsbMidiDevice },
40 { "UsbMidiDeviceFactory",
41 UsbMidiDeviceFactoryAndroid::RegisterUsbMidiDeviceFactory },
42 { "VideoCaptureDevice", 36 { "VideoCaptureDevice",
43 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice }, 37 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice },
44 { "VideoCaptureDeviceFactory", 38 { "VideoCaptureDeviceFactory",
45 VideoCaptureDeviceFactoryAndroid::RegisterVideoCaptureDeviceFactory }, 39 VideoCaptureDeviceFactoryAndroid::RegisterVideoCaptureDeviceFactory },
46 { "WebAudioMediaCodecBridge", 40 { "WebAudioMediaCodecBridge",
47 WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge }, 41 WebAudioMediaCodecBridge::RegisterWebAudioMediaCodecBridge },
48 }; 42 };
49 43
50 bool RegisterJni(JNIEnv* env) { 44 bool RegisterJni(JNIEnv* env) {
51 return base::android::RegisterNativeMethods( 45 return base::android::RegisterNativeMethods(
52 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods)); 46 env, kMediaRegisteredMethods, arraysize(kMediaRegisteredMethods));
53 } 47 }
54 48
55 } // namespace media 49 } // namespace media
OLDNEW
« no previous file with comments | « media/base/android/java/src/org/chromium/media/UsbMidiDeviceFactoryAndroid.java ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698