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

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

Issue 2132883002: [Remoting Android] Placeholder for DesktopView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/Client.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/jni/Client.java b/remoting/android/java/src/org/chromium/chromoting/jni/Client.java
index 058fcac32a59ec182ff9210b3a1d1118df470ce2..aaf6d880a94dca48245f50bb1be03a844bd334dc 100644
--- a/remoting/android/java/src/org/chromium/chromoting/jni/Client.java
+++ b/remoting/android/java/src/org/chromium/chromoting/jni/Client.java
@@ -8,6 +8,7 @@ import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.base.annotations.SuppressFBWarnings;
import org.chromium.chromoting.CapabilityManager;
+import org.chromium.chromoting.DesktopViewFactory;
import org.chromium.chromoting.InputStub;
import org.chromium.chromoting.SessionAuthenticator;
@@ -24,7 +25,7 @@ public class Client implements InputStub {
private long mNativeJniClient;
// Implementation-dependent display object used by the desktop view.
- private Object mDisplay;
+ private DesktopViewFactory mDisplay;
Lambros 2016/07/08 02:13:41 Can you fix the naming inconsistency somehow? Eith
Yuwei 2016/07/08 19:58:56 Logically speaking, this interface is just for cre
// The global Client instance (may be null). This needs to be a global singleton so that the
// Client can be passed between Activities.
@@ -44,7 +45,7 @@ public class Client implements InputStub {
* @param display the implementation-dependent object used by the desktop view.
*/
@CalledByNative
- private void setDisplay(Object display) {
+ private void setDisplay(DesktopViewFactory display) {
mDisplay = display;
}
@@ -53,7 +54,7 @@ public class Client implements InputStub {
* disconnectFromHost().
* @return the display object.
*/
- public Object getDisplay() {
+ public DesktopViewFactory getDisplay() {
return mDisplay;
}

Powered by Google App Engine
This is Rietveld 408576698