OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_ | 5 #ifndef MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_ |
6 #define MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_ | 6 #define MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_ |
7 | 7 |
8 #include "media/capture/video/video_capture_device_factory.h" | 8 #include "media/capture/video/video_capture_device_factory.h" |
9 | 9 |
10 #include <jni.h> | 10 #include <jni.h> |
(...skipping 10 matching lines...) Expand all Loading... | |
21 : public VideoCaptureDeviceFactory { | 21 : public VideoCaptureDeviceFactory { |
22 public: | 22 public: |
23 static bool RegisterVideoCaptureDeviceFactory(JNIEnv* env); | 23 static bool RegisterVideoCaptureDeviceFactory(JNIEnv* env); |
24 static base::android::ScopedJavaLocalRef<jobject> createVideoCaptureAndroid( | 24 static base::android::ScopedJavaLocalRef<jobject> createVideoCaptureAndroid( |
25 int id, | 25 int id, |
26 jlong nativeVideoCaptureDeviceAndroid); | 26 jlong nativeVideoCaptureDeviceAndroid); |
27 | 27 |
28 VideoCaptureDeviceFactoryAndroid() {} | 28 VideoCaptureDeviceFactoryAndroid() {} |
29 ~VideoCaptureDeviceFactoryAndroid() override {} | 29 ~VideoCaptureDeviceFactoryAndroid() override {} |
30 | 30 |
31 std::unique_ptr<VideoCaptureDevice> Create( | 31 std::unique_ptr<VideoCaptureDevice> CreateDevice( |
32 const VideoCaptureDevice::Name& device_name) override; | 32 const VideoCaptureDeviceDescriptor& device_descriptor) override; |
33 void GetDeviceNames(VideoCaptureDevice::Names* device_names) override; | 33 void GetDeviceDescriptors( |
34 void GetDeviceSupportedFormats( | 34 VideoCaptureDeviceDescriptors* device_descriptors) override; |
35 const VideoCaptureDevice::Name& device, | 35 void GetSupportedFormats(const VideoCaptureDeviceDescriptor& device, |
36 VideoCaptureFormats* supported_formats) override; | 36 VideoCaptureFormats* supported_formats); |
emircan
2016/07/28 21:23:02
override
| |
37 | 37 |
38 private: | |
39 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactoryAndroid); | 38 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactoryAndroid); |
40 }; | 39 }; |
41 } // namespace media | 40 } // namespace media |
42 | 41 |
43 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_ | 42 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_VIDEO_CAPTURE_DEVICE_FACTORY_ANDROID_H_ |
OLD | NEW |