OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_ |
| 6 #define MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 #include <memory> |
| 10 |
| 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "media/capture/video/video_capture_device.h" |
| 13 |
| 14 namespace media { |
| 15 |
| 16 class MEDIA_EXPORT ScreenCaptureFactoryAndroid { |
| 17 public: |
| 18 static bool RegisterScreenCaptureFactory(JNIEnv* env); |
| 19 static base::android::ScopedJavaLocalRef<jobject> |
| 20 createScreenCaptureMachineAndroid(jlong nativeScreenCaptureMachineAndroid); |
| 21 static std::unique_ptr<VideoCaptureDevice> Create(); |
| 22 |
| 23 ScreenCaptureFactoryAndroid() {} |
| 24 ~ScreenCaptureFactoryAndroid() {} |
| 25 |
| 26 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureFactoryAndroid); |
| 28 }; |
| 29 |
| 30 } // namespace media |
| 31 |
| 32 #endif // MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_ |
OLD | NEW |