OLD | NEW |
---|---|
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 Loading... | |
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); | |
Ilya Sherman
2013/01/03 23:54:04
nit: Pass by const reference
Evan Stade
2013/01/04 02:16:58
Done.
| |
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 Loading... | |
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_ |
OLD | NEW |