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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const std::vector<string16>& autofill_values, 57 const std::vector<string16>& autofill_values,
58 const std::vector<string16>& autofill_labels, 58 const std::vector<string16>& autofill_labels,
59 const std::vector<string16>& autofill_icons, 59 const std::vector<string16>& autofill_icons,
60 const std::vector<int>& autofill_unique_ids); 60 const std::vector<int>& autofill_unique_ids);
61 61
62 // Show password suggestions in the popup. 62 // Show password suggestions in the popup.
63 void OnShowPasswordSuggestions(const std::vector<string16>& suggestions, 63 void OnShowPasswordSuggestions(const std::vector<string16>& suggestions,
64 const webkit::forms::FormField& field, 64 const webkit::forms::FormField& field,
65 const gfx::Rect& bounds); 65 const gfx::Rect& bounds);
66 66
67 // Remove the given Autocomplete entry from the DB.
68 void RemoveAutocompleteEntry(const string16& value);
69
70 // Remove the given Autofill profile or credit credit.
71 void RemoveAutofillProfileOrCreditCard(int unique_id);
72
67 // Inform the delegate that the text field editing has ended, this is 73 // Inform the delegate that the text field editing has ended, this is
68 // used to help record the metrics of when a new popup is shown. 74 // used to help record the metrics of when a new popup is shown.
69 void DidEndTextFieldEditing(); 75 void DidEndTextFieldEditing();
70 76
71 // Inform the delegate that an autofill suggestion have been chosen. Returns 77 // Inform the delegate that an autofill suggestion have been chosen. Returns
72 // true if the suggestion was selected. 78 // true if the suggestion was selected.
73 bool DidAcceptAutofillSuggestions(const string16& value, 79 bool DidAcceptAutofillSuggestions(const string16& value,
74 int unique_id, 80 int unique_id,
75 unsigned index); 81 unsigned index);
76 82
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 webkit::forms::FormData autofill_query_form_; 148 webkit::forms::FormData autofill_query_form_;
143 webkit::forms::FormField autofill_query_field_; 149 webkit::forms::FormField autofill_query_field_;
144 150
145 // Should we display a warning if Autofill is disabled? 151 // Should we display a warning if Autofill is disabled?
146 bool display_warning_if_disabled_; 152 bool display_warning_if_disabled_;
147 153
148 // Have we already shown Autofill suggestions for the field the user is 154 // Have we already shown Autofill suggestions for the field the user is
149 // currently editing? Used to keep track of state for metrics logging. 155 // currently editing? Used to keep track of state for metrics logging.
150 bool has_shown_autofill_popup_for_current_edit_; 156 bool has_shown_autofill_popup_for_current_edit_;
151 157
152 // The menu index of the "Clear" menu item.
153 int suggestions_clear_index_;
154
155 // The menu index of the "Autofill options..." menu item.
156 int suggestions_options_index_;
157
158 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); 158 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);
159 }; 159 };
160 160
161 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ 161 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698