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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller.h

Issue 1134793004: Autofill item deletion on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 7 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: chrome/browser/ui/autofill/autofill_popup_controller.h
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller.h b/chrome/browser/ui/autofill/autofill_popup_controller.h
index c1631a07274d340601b75bfc17d318a62f426c7e..2b4927cfc8cdd0b8aa576d83fd86f3983f1cd36f 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller.h
+++ b/chrome/browser/ui/autofill/autofill_popup_controller.h
@@ -53,6 +53,15 @@ class AutofillPopupController : public AutofillPopupViewDelegate {
virtual const base::string16& GetElidedValueAt(size_t row) const = 0;
virtual const base::string16& GetElidedLabelAt(size_t row) const = 0;
+ // Returns whether the item at |list_index| can be removed. If so, fills
+ // out |title| and |body| (when non-null) with relevant user-facing text.
+ virtual bool GetRemovalConfirmationText(int index,
+ base::string16* title,
+ base::string16* body) = 0;
+
+ // Removes the suggestion at the given index.
+ virtual bool RemoveSuggestion(int index) = 0;
+
#if !defined(OS_ANDROID)
// The same font can vary based on the type of data it is showing,
// so we need to know the row.

Powered by Google App Engine
This is Rietveld 408576698