Index: chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java |
=================================================================== |
--- chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java (revision 187366) |
+++ chrome/android/java/src/org/chromium/chrome/browser/autofill/AutofillPopup.java (working copy) |
@@ -58,9 +58,9 @@ |
*/ |
public interface AutofillPopupDelegate { |
/** |
- * Confirms the dismissal of the java AutofillPopup object. |
+ * Requests the controller to hide AutofillPopup. |
*/ |
- public void dismissed(); |
+ public void requestHide(); |
/** |
* Handles the selection of an Autofill suggestion from an AutofillPopup. |
@@ -175,14 +175,21 @@ |
mAnchorView.setSize(mAnchorRect, getDesiredWidth(suggestions)); |
} |
+ |
/** |
- * Dismisses the popup and calls to mAutofillCallback.dismissed(). |
+ * Overrides the default dismiss behavior to request the controller to dismiss the view. |
*/ |
@Override |
public void dismiss() { |
+ mAutofillCallback.requestHide(); |
+ } |
+ |
+ /** |
+ * Hides the popup and removes the anchor view from the ContainerView. |
+ */ |
+ public void hide() { |
super.dismiss(); |
mContainerViewDelegate.removeViewFromContainerView(mAnchorView); |
- mAutofillCallback.dismissed(); |
} |
/** |