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 #include "media/screen_capture/android/screen_capture_factory_android.h" |
| 6 |
| 7 #include "base/android/scoped_java_ref.h" |
| 8 #include "jni/ScreenCaptureFactory_jni.h" |
| 9 |
| 10 using base::android::AttachCurrentThread; |
| 11 using base::android::ScopedJavaLocalRef; |
| 12 |
| 13 namespace media { |
| 14 |
| 15 // static |
| 16 bool ScreenCaptureFactoryAndroid::RegisterScreenCaptureFactory( |
| 17 JNIEnv* env) { |
| 18 return RegisterNativesImpl(env); |
| 19 } |
| 20 |
| 21 //static |
| 22 ScopedJavaLocalRef<jobject> |
| 23 ScreenCaptureFactoryAndroid::createScreenCaptureAndroid( |
| 24 jlong nativeScreenCapturerAndroid) { |
| 25 return (Java_ScreenCaptureFactory_createScreenCapture( |
| 26 AttachCurrentThread(), |
| 27 base::android::GetApplicationContext(), |
| 28 nativeScreenCapturerAndroid)); |
| 29 } |
| 30 |
| 31 } // namespace media |
OLD | NEW |