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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 2931443003: Add support for Android spellcheck menu in Chrome/WebViews (Closed)
Patch Set: Respond to yosin@'s comments Created 3 years, 6 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
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 8bf444f5ed53e72ca43ced352770cbbd734ce447..12e609d3b5b17dd9485c5f18dfb5a73c8d558586 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
@@ -460,8 +460,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(
@@ -986,6 +986,7 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Displa
destroyPastePopup();
hideSelectPopupWithCancelMessage();
mPopupZoomer.hide(false);
+ mImeAdapter.hidePopups();
}
private void restoreSelectionPopupsIfNecessary() {
@@ -2202,6 +2203,7 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Displa
hidePopupsAndPreserveSelection();
showSelectActionMode();
}
+ mImeAdapter.hidePopups();
int rotationDegrees = 0;
switch (rotation) {

Powered by Google App Engine
This is Rietveld 408576698