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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/jni/Display.java

Issue 2132883002: [Remoting Android] Placeholder for DesktopView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase ToT and do same fix for GlDisplay Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: remoting/android/java/src/org/chromium/chromoting/jni/Display.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/jni/Display.java b/remoting/android/java/src/org/chromium/chromoting/jni/Display.java
index 7f84ad8da1efafdb63476135f6683dda30793a5d..f7c7a10ae7371217bb9394dc5d50e38535fe7d0d 100644
--- a/remoting/android/java/src/org/chromium/chromoting/jni/Display.java
+++ b/remoting/android/java/src/org/chromium/chromoting/jni/Display.java
@@ -4,6 +4,7 @@
package org.chromium.chromoting.jni;
+import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.os.Looper;
@@ -11,6 +12,9 @@ import android.os.Looper;
import org.chromium.base.Log;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
+import org.chromium.chromoting.AbstractDesktopView;
+import org.chromium.chromoting.DesktopView;
+import org.chromium.chromoting.DesktopViewFactory;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@@ -166,6 +170,16 @@ public class Display {
}
@CalledByNative
+ private DesktopViewFactory createDesktopViewFactory() {
+ return new DesktopViewFactory() {
+ @Override
+ public AbstractDesktopView createDesktopView(Context context) {
+ return new DesktopView(context, Display.this);
+ }
+ };
+ }
+
+ @CalledByNative
private static Display createJavaDisplayObject(long nativeDisplayHandler) {
return new Display(nativeDisplayHandler);
}

Powered by Google App Engine
This is Rietveld 408576698