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 package org.chromium.media; |
| 6 |
| 7 import android.content.Context; |
| 8 import android.os.Build; |
| 9 |
| 10 import org.chromium.base.CalledByNative; |
| 11 import org.chromium.base.JNINamespace; |
| 12 |
| 13 @JNINamespace("media") |
| 14 @SuppressWarnings("deprecation") |
| 15 class ScreenCaptureFactory { |
| 16 |
| 17 // Factory methods. |
| 18 @CalledByNative |
| 19 static ScreenCapture createScreenCaptureMachine(Context context, |
| 20 long nativeScreenCaptureMachineAndroid) { |
| 21 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { |
| 22 return new ScreenCapture(context, nativeScreenCaptureMachineAndroid)
; |
| 23 } |
| 24 return null; |
| 25 } |
| 26 } |
OLD | NEW |