| 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.
|
|
|