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

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

Issue 2035303002: [Chromoting] Decouple DesktopView and TouchInputHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/SoftInputMethodVisibilityChangedEventParameter.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/SoftInputMethodVisibilityChangedEventParameter.java b/remoting/android/java/src/org/chromium/chromoting/SoftInputMethodVisibilityChangedEventParameter.java
new file mode 100644
index 0000000000000000000000000000000000000000..72b7ee7d305fb053b2329749865cd8ce01eb60ff
--- /dev/null
+++ b/remoting/android/java/src/org/chromium/chromoting/SoftInputMethodVisibilityChangedEventParameter.java
@@ -0,0 +1,31 @@
+// 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 an OnSoftInputMethodVisibilityChanged event.
+ *
+ * {@link android.graphics.Rect} is mutable, so this class owns four integers to represent the
+ * rectangle of new layout.
+ */
+public final class SoftInputMethodVisibilityChangedEventParameter {
+ public final boolean visible;
+ public final int left;
+ public final int top;
+ public final int right;
+ public final int bottom;
+
+ public SoftInputMethodVisibilityChangedEventParameter(boolean visible,
+ int left,
+ int top,
+ int right,
+ int bottom) {
+ this.visible = visible;
+ this.left = left;
+ this.top = top;
+ this.right = right;
+ this.bottom = bottom;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698