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..fc6753fe5f1f0482d56c7e7609559d6bdffa5bd9 |
--- /dev/null |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/input/TestImeAdapterDelegate.java |
@@ -0,0 +1,42 @@ |
+// 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 { |
+ private final View mView; |
+ |
+ public TestImeAdapterDelegate(View view) { |
+ mView = view; |
+ } |
+ |
+ @Override |
+ public void onImeEvent() {} |
+ |
+ @Override |
+ public void onKeyboardBoundsUnchanged() {} |
+ |
+ @Override |
+ public boolean performContextMenuAction(int id) { |
+ return false; |
+ } |
+ |
+ @Override |
+ public View getAttachedView() { |
+ return mView; |
+ } |
+ |
+ @Override |
+ public ResultReceiver getNewShowKeyboardReceiver() { |
+ return null; |
+ } |
+} |