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; |
+ } |
+} |