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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller.h

Issue 11742033: requestAutocomplete: only menu-suggest "complete" profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review feedback Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 // Whether or not the current request wants credit info back. 145 // Whether or not the current request wants credit info back.
146 bool RequestingCreditCardInfo() const; 146 bool RequestingCreditCardInfo() const;
147 147
148 // Whether or not the view should show a security warning. 148 // Whether or not the view should show a security warning.
149 bool ShouldShowSecurityWarning() const; 149 bool ShouldShowSecurityWarning() const;
150 150
151 // Initializes |suggested_email_| et al. 151 // Initializes |suggested_email_| et al.
152 void GenerateComboboxModels(); 152 void GenerateComboboxModels();
153 153
154 // Returns whether |profile| is complete, i.e. can fill out all the relevant
155 // address info. Incomplete profiles will not be displayed in the dropdown
156 // menu.
157 bool IsCompleteProfile(const AutofillProfile& profile);
158
154 // Fills in |section|-related fields in |output_| according to the state of 159 // Fills in |section|-related fields in |output_| according to the state of
155 // |view_|. 160 // |view_|.
156 void FillOutputForSection(DialogSection section); 161 void FillOutputForSection(DialogSection section);
157 // As above, but uses |compare| to determine whether a DetailInput matches 162 // As above, but uses |compare| to determine whether a DetailInput matches
158 // a field. 163 // a field.
159 void FillOutputForSectionWithComparator(DialogSection section, 164 void FillOutputForSectionWithComparator(DialogSection section,
160 const InputFieldComparator& compare); 165 const InputFieldComparator& compare);
161 166
162 // Fills in |form_structure_| using |form_group|. Utility method for 167 // Fills in |form_structure_| using |form_group|. Utility method for
163 // FillOutputForSection. 168 // FillOutputForSection.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 AutofillPopupControllerImpl* popup_controller_; 226 AutofillPopupControllerImpl* popup_controller_;
222 227
223 scoped_ptr<AutofillDialogView> view_; 228 scoped_ptr<AutofillDialogView> view_;
224 229
225 DISALLOW_COPY_AND_ASSIGN(AutofillDialogController); 230 DISALLOW_COPY_AND_ASSIGN(AutofillDialogController);
226 }; 231 };
227 232
228 } // namespace autofill 233 } // namespace autofill
229 234
230 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_ 235 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698