Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: media/base/android/java/src/org/chromium/media/ScreenCaptureFactory.java

Issue 1140113002: Implement screen capture for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 private static final String TAG = "ScreenCaptureAndroid";
18
19 private static boolean isLReleaseOrLater() {
20 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
miu 2015/05/20 03:33:27 nit: This expression doesn't need its own method.
21 }
22
23 // Factory methods.
24 @CalledByNative
25 static ScreenCapture createScreenCapture(Context context, long nativeScreenC apturerAndroid) {
26 if (isLReleaseOrLater()) {
27 return new ScreenCapture(context, nativeScreenCapturerAndroid);
28 }
29 return null;
30 }
31 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698