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

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

Issue 2035303002: [Chromoting] Decouple DesktopView and TouchInputHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: remoting/android/java/src/org/chromium/chromoting/DesktopViewInterface.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/DesktopViewInterface.java b/remoting/android/java/src/org/chromium/chromoting/DesktopViewInterface.java
index 41a29c178b6d75148e2da337488bbd3feeb9c8c6..4bca96aba3a8f441574d710489d8db80f6d83c27 100644
--- a/remoting/android/java/src/org/chromium/chromoting/DesktopViewInterface.java
+++ b/remoting/android/java/src/org/chromium/chromoting/DesktopViewInterface.java
@@ -6,10 +6,18 @@ package org.chromium.chromoting;
import android.graphics.Point;
+import org.chromium.chromoting.jni.Client;
+
/**
* Callback interface to allow the TouchInputHandler to request actions on the DesktopView.
*/
public interface DesktopViewInterface {
+ /**
+ * Initializes the instance. Implementations can assume this function will be called exactly
+ * once after constructor but before other functions.
+ */
+ void init(Desktop desktop, Client client);
+
/** Triggers a brief animation to indicate the existence and location of an input event. */
void showInputFeedback(DesktopView.InputFeedbackType feedbackToShow, Point pos);

Powered by Google App Engine
This is Rietveld 408576698