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

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: Add ScreenCaptureMachineAndroid which inherited from content::VideoCaptureMachine Created 5 years, 6 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 // 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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698