OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/capture/video/android/capture_jni_registrar.h" | 5 #include "media/capture/video/android/capture_jni_registrar.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 | |
11 #include "media/capture/video/android/photo_capabilities.h" | |
12 #include "media/capture/video/android/video_capture_device_android.h" | 10 #include "media/capture/video/android/video_capture_device_android.h" |
13 #include "media/capture/video/android/video_capture_device_factory_android.h" | |
14 | 11 |
15 namespace media { | 12 namespace media { |
16 | 13 |
17 static base::android::RegistrationMethod kCaptureRegisteredMethods[] = { | 14 static base::android::RegistrationMethod kCaptureRegisteredMethods[] = { |
18 {"PhotoCapabilities", PhotoCapabilities::RegisterPhotoCapabilities}, | |
19 {"VideoCaptureDevice", | 15 {"VideoCaptureDevice", |
20 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice}, | 16 VideoCaptureDeviceAndroid::RegisterVideoCaptureDevice}, |
21 {"VideoCaptureDeviceFactory", | |
22 VideoCaptureDeviceFactoryAndroid::RegisterVideoCaptureDeviceFactory}, | |
23 }; | 17 }; |
24 | 18 |
25 bool RegisterCaptureJni(JNIEnv* env) { | 19 bool RegisterCaptureJni(JNIEnv* env) { |
26 return base::android::RegisterNativeMethods( | 20 return base::android::RegisterNativeMethods( |
27 env, kCaptureRegisteredMethods, arraysize(kCaptureRegisteredMethods)); | 21 env, kCaptureRegisteredMethods, arraysize(kCaptureRegisteredMethods)); |
28 } | 22 } |
29 | 23 |
30 } // namespace media | 24 } // namespace media |
OLD | NEW |