| 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 d99eb2a954648fc9ad913ba776e7c1a4d90bb20e..d0710a3cb9ea691114226857d46577dd66120109 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;
|
| @@ -359,6 +360,10 @@ public class ContentViewCore implements MotionEventDelegate {
|
| };
|
| }
|
|
|
| + public ImeAdapter getImeAdapterForTest() {
|
| + return mImeAdapter;
|
| + }
|
| +
|
| private ImeAdapter createImeAdapter(Context context) {
|
| return new ImeAdapter(context, getSelectionHandleController(),
|
| getInsertionHandleController(),
|
| @@ -1180,6 +1185,10 @@ public class ContentViewCore implements MotionEventDelegate {
|
| return mInputConnection;
|
| }
|
|
|
| + public Editable getEditableForTest() {
|
| + return mInputConnection.getEditable();
|
| + }
|
| +
|
| /**
|
| * @see View#onCheckIsTextEditor()
|
| */
|
| @@ -1686,6 +1695,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;
|
|
|