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

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

Issue 1281323003: Remove items on long press in keyboard accessory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Null out context. Rebase. 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/AutofillDelegate.java
diff --git a/ui/android/java/src/org/chromium/ui/autofill/AutofillDelegate.java b/ui/android/java/src/org/chromium/ui/autofill/AutofillDelegate.java
new file mode 100644
index 0000000000000000000000000000000000000000..d3020b918ad3e85c5eed316f68ad29cba5196947
--- /dev/null
+++ b/ui/android/java/src/org/chromium/ui/autofill/AutofillDelegate.java
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.ui.autofill;
+
+/**
+ * An interface to handle the touch interaction with an autofill popup or keyboard accessory.
+ */
+public interface AutofillDelegate {
+ /**
+ * Informs the controller the AutofillPopup or AutofillKeyboardAccessory was hidden.
+ */
+ public void dismissed();
+
+ /**
+ * Handles the selection of an Autofill suggestion from an AutofillPopup or
+ * AutofillKeyboardAccessory.
+ * @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);
+}

Powered by Google App Engine
This is Rietveld 408576698