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