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); |
} |