| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chromoting; | 5 package org.chromium.chromoting; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * The parameter for the OnSystemUiVisibilityChanged event. | 8 * The parameter for the OnSystemUiVisibilityChanged event. |
| 9 * | 9 * |
| 10 * {@link android.graphics.Rect} is mutable, so this class owns four integers to
represent the | 10 * {@link android.graphics.Rect} is mutable, so this class owns four integers to
represent the |
| 11 * inset between the System UI elements which is used for our viewable content. | 11 * inset between the System UI elements which is used for our viewable content. |
| 12 */ | 12 */ |
| 13 public final class SystemUiVisibilityChangedEventParameter { | 13 public final class SystemUiVisibilityChangedEventParameter { |
| 14 public final boolean softInputMethodVisible; | |
| 15 public final boolean systemUiVisible; | |
| 16 public final int left; | 14 public final int left; |
| 17 public final int top; | 15 public final int top; |
| 18 public final int right; | 16 public final int right; |
| 19 public final int bottom; | 17 public final int bottom; |
| 20 | 18 |
| 21 public SystemUiVisibilityChangedEventParameter(boolean systemUiVisible, | 19 public SystemUiVisibilityChangedEventParameter(int left, int top, int right,
int bottom) { |
| 22 boolean softInputMethodVisible, int left, int top, int right, int bo
ttom) { | |
| 23 this.systemUiVisible = systemUiVisible; | |
| 24 this.softInputMethodVisible = softInputMethodVisible; | |
| 25 this.left = left; | 20 this.left = left; |
| 26 this.top = top; | 21 this.top = top; |
| 27 this.right = right; | 22 this.right = right; |
| 28 this.bottom = bottom; | 23 this.bottom = bottom; |
| 29 } | 24 } |
| 30 } | 25 } |
| OLD | NEW |