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 ddb753026220c0bd462255d39ab0eaf72d203043..16fcf712b8cb12c20e53635279c1abcd73b50c59 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 |
@@ -457,8 +457,8 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Displa |
setContainerViewInternals(internalDispatcher); |
initPopupZoomer(mContext); |
- mImeAdapter = new ImeAdapter( |
- mWebContents, mContainerView, new InputMethodManagerWrapper(mContext)); |
+ mImeAdapter = new ImeAdapter(mWebContents, mContainerView, |
+ new InputMethodManagerWrapper(mContext), mRenderCoordinates); |
mImeAdapter.addEventObserver(this); |
mSelectionPopupController = new SelectionPopupController( |
@@ -983,6 +983,7 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Displa |
destroyPastePopup(); |
hideSelectPopupWithCancelMessage(); |
mPopupZoomer.hide(false); |
+ mImeAdapter.hidePopups(); |
} |
private void restoreSelectionPopupsIfNecessary() { |
@@ -2172,6 +2173,7 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Displa |
hidePopupsAndPreserveSelection(); |
showSelectActionMode(); |
} |
+ mImeAdapter.hidePopups(); |
int rotationDegrees = 0; |
switch (rotation) { |