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

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 Autocomplete entry specific from the DB.
Ilya Sherman 2012/04/17 08:31:20 nit: What does "specific" mean?
csharp 2012/04/18 15:35:58 reworded
68 void RemoveAutocompleteEntry(const string16& value);
69
67 // Inform the delegate that the text field editing has ended, this is 70 // 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. 71 // used to help record the metrics of when a new popup is shown.
69 void DidEndTextFieldEditing(); 72 void DidEndTextFieldEditing();
70 73
71 // Inform the delegate that an autofill suggestion have been chosen. Returns 74 // Inform the delegate that an autofill suggestion have been chosen. Returns
72 // true if the suggestion was selected. 75 // true if the suggestion was selected.
73 bool DidAcceptAutofillSuggestions(const string16& value, 76 bool DidAcceptAutofillSuggestions(const string16& value,
74 int unique_id, 77 int unique_id,
75 unsigned index); 78 unsigned index);
76 79
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // The menu index of the "Clear" menu item. 155 // The menu index of the "Clear" menu item.
153 int suggestions_clear_index_; 156 int suggestions_clear_index_;
154 157
155 // The menu index of the "Autofill options..." menu item. 158 // The menu index of the "Autofill options..." menu item.
156 int suggestions_options_index_; 159 int suggestions_options_index_;
157 160
158 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate); 161 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegate);
159 }; 162 };
160 163
161 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_ 164 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698