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

Unified Diff: content/public/android/javatests/src/org/chromium/content/browser/input/TestImeAdapterDelegate.java

Issue 1362603002: Straighten up keyboard hide and show logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added a TODO and fixed test Created 5 years, 1 month 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: content/public/android/javatests/src/org/chromium/content/browser/input/TestImeAdapterDelegate.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/input/TestImeAdapterDelegate.java b/content/public/android/javatests/src/org/chromium/content/browser/input/TestImeAdapterDelegate.java
new file mode 100644
index 0000000000000000000000000000000000000000..f59a1010bb37790b0104143d73a09d02495184ea
--- /dev/null
+++ b/content/public/android/javatests/src/org/chromium/content/browser/input/TestImeAdapterDelegate.java
@@ -0,0 +1,36 @@
+// Copyright 2015 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.content.browser.input;
+
+import android.os.ResultReceiver;
+import android.view.View;
+
+import org.chromium.content.browser.input.ImeAdapter.ImeAdapterDelegate;
+
+/**
+ * An empty ImeAdapterDelegate used for testing.
+ */
+public class TestImeAdapterDelegate implements ImeAdapterDelegate {
+ @Override
+ public void onImeEvent() {}
+
+ @Override
+ public void onKeyboardBoundsUnchanged() {}
+
+ @Override
+ public boolean performContextMenuAction(int id) {
+ return false;
+ }
+
+ @Override
+ public View getAttachedView() {
+ return null;
+ }
+
+ @Override
+ public ResultReceiver getNewShowKeyboardReceiver() {
+ return null;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698