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); |
+} |