| 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 9ea18212eb3dba253af4792e97a509adc96ba698..f73a1bfaf882440d56af69223ab5abb84a7a77d3 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
|
| @@ -521,9 +521,7 @@ public class ContentViewCore
|
| new ImeAdapter.ImeAdapterDelegate() {
|
| @Override
|
| public void onImeEvent() {
|
| - if (mPopupZoomer.isShowing()) {
|
| - mPopupZoomer.hide(true);
|
| - }
|
| + mPopupZoomer.hide(true);
|
| getContentViewClient().onImeEvent();
|
| hideTextHandles();
|
| }
|
| @@ -754,6 +752,11 @@ public class ContentViewCore
|
| mPopupZoomer.setOnTapListener(listener);
|
| }
|
|
|
| + @VisibleForTesting
|
| + public void setPopupZoomerForTest(PopupZoomer popupZoomer) {
|
| + mPopupZoomer = popupZoomer;
|
| + }
|
| +
|
| /**
|
| * Destroy the internal state of the ContentView. This method may only be
|
| * called after the ContentView has been removed from the view system. No
|
| @@ -1430,6 +1433,7 @@ public class ContentViewCore
|
| hidePastePopup();
|
| hideSelectPopup();
|
| hideTextHandles();
|
| + mPopupZoomer.hide(false);
|
| }
|
|
|
| public void hideSelectActionBar() {
|
| @@ -1623,6 +1627,7 @@ public class ContentViewCore
|
| cancelRequestToScrollFocusedEditableNodeIntoView();
|
| hidePastePopup();
|
| hideTextHandles();
|
| + mPopupZoomer.hide(false);
|
| }
|
| if (mNativeContentViewCore != 0) nativeSetFocus(mNativeContentViewCore, gainFocus);
|
| }
|
|
|