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..c1b43df1be83955545af21ddc435ac4b2390de7c |
--- /dev/null |
+++ b/media/base/android/java/src/org/chromium/media/ScreenCaptureFactory.java |
@@ -0,0 +1,26 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// 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.CalledByNative; |
+import org.chromium.base.JNINamespace; |
+ |
+@JNINamespace("media") |
+@SuppressWarnings("deprecation") |
+class ScreenCaptureFactory { |
+ |
+ // 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; |
+ } |
+} |