Index: remoting/android/java/src/org/chromium/chromoting/SystemUiVisibilityChangedEventParameter.java |
diff --git a/remoting/android/java/src/org/chromium/chromoting/SystemUiVisibilityChangedEventParameter.java b/remoting/android/java/src/org/chromium/chromoting/SystemUiVisibilityChangedEventParameter.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a3eb076137b755078a6c469134b7c6376d3d3574 |
--- /dev/null |
+++ b/remoting/android/java/src/org/chromium/chromoting/SystemUiVisibilityChangedEventParameter.java |
@@ -0,0 +1,30 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.chromoting; |
+ |
+/** |
+ * The parameter for the OnSystemUiVisibilityChanged event. |
+ * |
+ * {@link android.graphics.Rect} is mutable, so this class owns four integers to represent the |
+ * inset between the System UI elements which is used for our viewable content. |
+ */ |
+public final class SystemUiVisibilityChangedEventParameter { |
+ public final boolean softInputMethodVisible; |
+ public final boolean systemUiVisible; |
+ public final int left; |
+ public final int top; |
+ public final int right; |
+ public final int bottom; |
+ |
+ public SystemUiVisibilityChangedEventParameter(boolean systemUiVisible, |
+ boolean softInputMethodVisible, int left, int top, int right, int bottom) { |
+ this.systemUiVisible = systemUiVisible; |
+ this.softInputMethodVisible = softInputMethodVisible; |
+ this.left = left; |
+ this.top = top; |
+ this.right = right; |
+ this.bottom = bottom; |
+ } |
+} |