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

Unified Diff: ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java

Issue 1281323003: Remove items on long press in keyboard accessory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First patch Created 5 years, 4 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: ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java
diff --git a/ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java b/ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java
index 0019b4cd1d90c5474d0c712a7baff19406272afd..e3f9c9d7cdbdcb453b7e53d70e6caa9514b35735 100644
--- a/ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java
+++ b/ui/android/java/src/org/chromium/ui/autofill/AutofillPopup.java
@@ -34,32 +34,9 @@ public class AutofillPopup extends DropdownPopupWindow implements AdapterView.On
private static final int ITEM_ID_SEPARATOR_ENTRY = -3;
private final Context mContext;
- private final AutofillPopupDelegate mAutofillCallback;
+ private final AutofillDelegate mAutofillCallback;
private List<AutofillSuggestion> mSuggestions;
-
- /**
- * An interface to handle the touch interaction with an AutofillPopup object.
- */
- public interface AutofillPopupDelegate {
- /**
- * Informs the controller the AutofillPopup was hidden.
- */
- public void dismissed();
-
- /**
- * Handles the selection of an Autofill suggestion from an AutofillPopup.
- * @param listIndex The index of the selected Autofill suggestion.
- */
- public void suggestionSelected(int listIndex);
-
- /**
- * Initiates the deletion process for an item. (A confirm dialog should be shown.)
- * @param listIndex The index of the suggestion to delete.
- */
- public void deleteSuggestion(int listIndex);
- }
-
/**
* Creates an AutofillWindow with specified parameters.
* @param context Application context.
@@ -67,7 +44,7 @@ public class AutofillPopup extends DropdownPopupWindow implements AdapterView.On
* @param autofillCallback A object that handles the calls to the native AutofillPopupView.
*/
public AutofillPopup(Context context, ViewAndroidDelegate viewAndroidDelegate,
- AutofillPopupDelegate autofillCallback) {
+ AutofillDelegate autofillCallback) {
super(context, viewAndroidDelegate);
mContext = context;
mAutofillCallback = autofillCallback;

Powered by Google App Engine
This is Rietveld 408576698