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

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

Issue 2105843002: Updating SystemUI visibility events in Adroid Client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing feedback Created 4 years, 6 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
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;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698