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

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

Issue 2803203003: Revert of Migrate IME state update flow (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+ }
+}
« no previous file with comments | « content/public/android/javatests/src/org/chromium/content/browser/PopupZoomerTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698