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

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

Issue 2035303002: [Chromoting] Decouple DesktopView and TouchInputHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync latest changes 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
« no previous file with comments | « remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java b/remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java
index 80bd162b7b7f966c96ef4f93eccc8ca17ad7c59d..76e189dbfacae4474c3513e21afb6b89c85f6848 100644
--- a/remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java
+++ b/remoting/android/java/src/org/chromium/chromoting/TouchInputHandlerInterface.java
@@ -4,9 +4,10 @@
package org.chromium.chromoting;
-import android.graphics.Rect;
import android.view.MotionEvent;
+import org.chromium.chromoting.jni.Client;
+
/**
* This interface allows multiple styles of touchscreen UI to be implemented and dynamically
* switched. The DesktopView passes the low-level touchscreen events and other events via this
@@ -22,6 +23,12 @@ public interface TouchInputHandlerInterface {
int BUTTON_RIGHT = 3;
/**
+ * 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);
+
+ /**
* Processes a touch event. This should be called by the View in its onTouchEvent() handler.
*/
boolean onTouchEvent(MotionEvent event);
@@ -39,20 +46,8 @@ public interface TouchInputHandlerInterface {
void onHostSizeChanged(int width, int height);
/**
- * Called when the visibility of the soft input method has changed.
- * The innerBounds parameter describes the amount of space used by SystemUI along each edge of
- * the screen. The status bar is typically shown along the top, soft input UI is generally
- * shown at the bottom. The navigation bar is shown along the bottom for tablets and along the
- * right side for phones in landscape mode (it shown at the bottom in portrait mode).
- */
- void onSoftInputMethodVisibilityChanged(boolean inputMethodVisible, Rect innerBounds);
-
- /**
* Whilst an animation is in progress, this method is called repeatedly until the animation is
* cancelled. After this method returns, the DesktopView will schedule a repaint.
*/
void processAnimation();
-
- /** Sets the underlying strategy to use when translating and forwarding local touch input. */
- void setInputStrategy(InputStrategyInterface inputStrategy);
}
« no previous file with comments | « remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698