Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
index 88c6f3b951b771e16c06770ae56f2065934a9967..7dc94b4f521b7f6bb150357c22e13e4e7a1c6583 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
@@ -20,6 +20,7 @@ import android.os.Bundle; |
import android.os.Handler; |
import android.os.ResultReceiver; |
import android.os.SystemClock; |
+import android.text.Editable; |
import android.util.Log; |
import android.util.Pair; |
import android.view.ActionMode; |
@@ -335,6 +336,10 @@ public class ContentViewCore implements MotionEventDelegate { |
}; |
} |
+ public ImeAdapter getImeAdapterForTest() { |
+ return mImeAdapter; |
+ } |
+ |
private ImeAdapter createImeAdapter(Context context) { |
return new ImeAdapter(context, getSelectionHandleController(), |
getInsertionHandleController(), |
@@ -1175,6 +1180,10 @@ public class ContentViewCore implements MotionEventDelegate { |
return mInputConnection; |
} |
+ public Editable getEditableForTest() { |
+ return mInputConnection.getEditable(); |
+ } |
+ |
/** |
* @see View#onCheckIsTextEditor() |
*/ |
@@ -1681,6 +1690,10 @@ public class ContentViewCore implements MotionEventDelegate { |
return mInsertionHandleController; |
} |
+ public InsertionHandleController getInsertionHandleControllerForTest() { |
+ return mInsertionHandleController; |
+ } |
+ |
private void updateHandleScreenPositions() { |
if (mSelectionHandleController != null && mSelectionHandleController.isShowing()) { |
float startX = mStartHandleNormalizedPoint.x * mNativePageScaleFactor - mNativeScrollX; |