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

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

Issue 2371803002: Updating the method called when System UI visibility/size changes (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java b/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
index f47a651e2723faf7b74c97e9b93b379bb2b19b48..35f9ee6709c1beefaa4272a8919d23fdb0364f99 100644
--- a/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
+++ b/remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java
@@ -30,7 +30,7 @@ public class DesktopCanvas {
private PointF mViewportPosition = new PointF();
/**
- * Represents the amount of space, in pixels, used by system UI.
+ * Represents the amount of space, in pixels, used by System UI.
*/
private Rect mSystemUiOffsetPixels = new Rect();
@@ -104,17 +104,22 @@ public class DesktopCanvas {
}
/**
- * Sets the offset values used to calculate the space used by system UI.
+ * Sets the offset values used to calculate the space used by System UI.
*
- * @param left The space used by system UI on the left edge of the screen.
- * @param top The space used by system UI on the top edge of the screen.
- * @param right The space used by system UI on the right edge of the screen.
- * @param bottom The space used by system UI on the bottom edge of the screen.
+ * @param left The space used by System UI on the left edge of the screen.
+ * @param top The space used by System UI on the top edge of the screen.
+ * @param right The space used by System UI on the right edge of the screen.
+ * @param bottom The space used by System UI on the bottom edge of the screen.
*/
public void setSystemUiOffsetValues(int left, int top, int right, int bottom) {
mSystemUiOffsetPixels.set(left, top, right, bottom);
}
+ /** Called to indicate that no System UI is visible. */
+ public void clearSystemUiOffsets() {
+ mSystemUiOffsetPixels.setEmpty();
+ }
+
/** Repositions the image by zooming it such that the image is displayed without borders. */
public void resizeImageToFitScreen() {
// Protect against being called before the image has been initialized.
« no previous file with comments | « no previous file | remoting/android/java/src/org/chromium/chromoting/TouchInputHandler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698