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

Unified Diff: chrome/browser/autofill/autofill_external_delegate.h

Issue 10073018: Add Delete Support to New Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding profile and credit card deleteion Created 8 years, 8 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/autofill/autofill_external_delegate.h
diff --git a/chrome/browser/autofill/autofill_external_delegate.h b/chrome/browser/autofill/autofill_external_delegate.h
index 18aa57c4060565d5543969d63310f94aa93e22bc..54fa3a9ea0e97a3fe4dcd77eb1a29f4ccb7b43c6 100644
--- a/chrome/browser/autofill/autofill_external_delegate.h
+++ b/chrome/browser/autofill/autofill_external_delegate.h
@@ -30,6 +30,9 @@ class Rect;
// display and selection.
class AutofillExternalDelegate {
public:
+ // The value to give as the unique id for all warnings.
+ static const int kWarningId = -1;
Ilya Sherman 2012/04/18 18:12:51 nit: Let's use the new constants added in the WebK
csharp 2012/04/19 15:33:24 Done.
+
virtual ~AutofillExternalDelegate();
// When using an external Autofill delegate. Allows Chrome to tell
@@ -64,6 +67,12 @@ class AutofillExternalDelegate {
const webkit::forms::FormField& field,
const gfx::Rect& bounds);
+ // Remove the given Autocomplete entry from the DB.
+ void RemoveAutocompleteEntry(const string16& value);
+
+ // Remove the given Autofill profile or credit credit.
+ void RemoveAutofillProfileOrCreditCard(int unique_id);
+
// Inform the delegate that the text field editing has ended, this is
// used to help record the metrics of when a new popup is shown.
void DidEndTextFieldEditing();
@@ -128,6 +137,9 @@ class AutofillExternalDelegate {
// this data.
void FillAutofillFormData(int unique_id, bool is_preview);
+ // Adjust the positions of the Non-Autofill menu items.
+ void AdjustIndicesAfterDeletion();
+
TabContentsWrapper* tab_contents_wrapper_; // weak; owns me.
AutofillManager* autofill_manager_; // weak.

Powered by Google App Engine
This is Rietveld 408576698