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

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: 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/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..acca5e705c1c7ab13baa2e25dd50725b77958475
--- /dev/null
+++ b/ui/android/java/src/org/chromium/ui/autofill/AutofillDelegate.java
@@ -0,0 +1,27 @@
+// 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 AutofillKeyboardAccessory was hidden.
newt (away) 2015/08/10 20:39:36 "AutofillKeyboardAccessory or AutofillPopup", righ
please use gerrit instead 2015/08/11 20:42:19 Done.
+ */
+ public void dismissed();
+
+ /**
+ * Handles the selection of an Autofill suggestion from an 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