Chromium Code Reviews| Index: media/base/android/java/src/org/chromium/media/ScreenCaptureFactory.java |
| diff --git a/media/base/android/java/src/org/chromium/media/ScreenCaptureFactory.java b/media/base/android/java/src/org/chromium/media/ScreenCaptureFactory.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6c631e50021e345c2ed610756b2265e3269d985d |
| --- /dev/null |
| +++ b/media/base/android/java/src/org/chromium/media/ScreenCaptureFactory.java |
| @@ -0,0 +1,25 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
|
mcasas
2016/04/27 01:19:26
2016...
braveyao
2016/05/04 18:49:40
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.media; |
| + |
| +import android.content.Context; |
| +import android.os.Build; |
| + |
| +import org.chromium.base.annotations.CalledByNative; |
| +import org.chromium.base.annotations.JNINamespace; |
| + |
| +@JNINamespace("media") |
| +@SuppressWarnings("deprecation") |
| +class ScreenCaptureFactory { |
|
mcasas
2016/04/27 01:19:27
This class is tiny, merge it in ScreenCapture as a
braveyao
2016/05/04 18:49:40
Done.
|
| + // Factory methods. |
| + @CalledByNative |
| + static ScreenCapture createScreenCaptureMachine( |
| + Context context, long nativeScreenCaptureMachineAndroid) { |
| + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { |
| + return new ScreenCapture(context, nativeScreenCaptureMachineAndroid); |
| + } |
| + return null; |
| + } |
| +} |