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

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

Issue 1427453004: Fixing image canvas resize problems when showing/hiding system UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing code review feedback Created 5 years, 1 month 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/TouchInputHandler.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java b/remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java
index 48e5ccf9ac19bad2da5f9a37c4cb0fa8a9fbe884..190396fde9c0e92872cf81ad256b13d576e929c5 100644
--- a/remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java
+++ b/remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java
@@ -4,6 +4,7 @@
package org.chromium.chromoting;
+import android.graphics.Rect;
import android.view.MotionEvent;
/**
@@ -38,6 +39,15 @@ public interface TouchInputHandler {
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.
*/

Powered by Google App Engine
This is Rietveld 408576698