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_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 virtual const std::vector<gfx::Range>& LegalDocumentLinks() OVERRIDE; | 125 virtual const std::vector<gfx::Range>& LegalDocumentLinks() OVERRIDE; |
126 virtual bool SectionIsActive(DialogSection section) const OVERRIDE; | 126 virtual bool SectionIsActive(DialogSection section) const OVERRIDE; |
127 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) | 127 virtual const DetailInputs& RequestedFieldsForSection(DialogSection section) |
128 const OVERRIDE; | 128 const OVERRIDE; |
129 virtual ui::ComboboxModel* ComboboxModelForAutofillType( | 129 virtual ui::ComboboxModel* ComboboxModelForAutofillType( |
130 ServerFieldType type) OVERRIDE; | 130 ServerFieldType type) OVERRIDE; |
131 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; | 131 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; |
132 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; | 132 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; |
133 virtual SuggestionState SuggestionStateForSection( | 133 virtual SuggestionState SuggestionStateForSection( |
134 DialogSection section) OVERRIDE; | 134 DialogSection section) OVERRIDE; |
| 135 // TODO(groby): Remove this deprecated method after Mac starts using |
| 136 // IconsForFields. http://crbug.com/292876 |
135 virtual gfx::Image IconForField(ServerFieldType type, | 137 virtual gfx::Image IconForField(ServerFieldType type, |
136 const string16& user_input) const OVERRIDE; | 138 const string16& user_input) const OVERRIDE; |
| 139 virtual FieldIconMap IconsForFields(const FieldValueMap& user_inputs) |
| 140 const OVERRIDE; |
| 141 virtual bool FieldControlsIcons(ServerFieldType type) const OVERRIDE; |
137 virtual string16 InputValidityMessage(DialogSection section, | 142 virtual string16 InputValidityMessage(DialogSection section, |
138 ServerFieldType type, | 143 ServerFieldType type, |
139 const string16& value) OVERRIDE; | 144 const string16& value) OVERRIDE; |
140 virtual ValidityData InputsAreValid( | 145 virtual ValidityData InputsAreValid( |
141 DialogSection section, | 146 DialogSection section, |
142 const DetailOutputMap& inputs, | 147 const DetailOutputMap& inputs, |
143 ValidationType validation_type) OVERRIDE; | 148 ValidationType validation_type) OVERRIDE; |
144 virtual void UserEditedOrActivatedInput(DialogSection section, | 149 virtual void UserEditedOrActivatedInput(DialogSection section, |
145 const DetailInput* input, | 150 const DetailInput* input, |
146 gfx::NativeView parent_view, | 151 gfx::NativeView parent_view, |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 // Suggested text and icons for sections. Suggestion text is used to show an | 423 // Suggested text and icons for sections. Suggestion text is used to show an |
419 // abridged overview of the currently used suggestion. Extra text is used when | 424 // abridged overview of the currently used suggestion. Extra text is used when |
420 // part of a section is suggested but part must be manually input (e.g. during | 425 // part of a section is suggested but part must be manually input (e.g. during |
421 // a CVC challenge or when using Autofill's CC section [never stores CVC]). | 426 // a CVC challenge or when using Autofill's CC section [never stores CVC]). |
422 bool SuggestionTextForSection(DialogSection section, | 427 bool SuggestionTextForSection(DialogSection section, |
423 base::string16* vertically_compact, | 428 base::string16* vertically_compact, |
424 base::string16* horizontally_compact); | 429 base::string16* horizontally_compact); |
425 string16 RequiredActionTextForSection(DialogSection section) const; | 430 string16 RequiredActionTextForSection(DialogSection section) const; |
426 gfx::Image SuggestionIconForSection(DialogSection section); | 431 gfx::Image SuggestionIconForSection(DialogSection section); |
427 string16 ExtraSuggestionTextForSection(DialogSection section) const; | 432 string16 ExtraSuggestionTextForSection(DialogSection section) const; |
428 gfx::Image ExtraSuggestionIconForSection(DialogSection section) const; | 433 gfx::Image ExtraSuggestionIconForSection(DialogSection section); |
429 | 434 |
430 // Loads profiles that can suggest data for |type|. |field_contents| is the | 435 // Loads profiles that can suggest data for |type|. |field_contents| is the |
431 // part the user has already typed. |inputs| is the rest of section. | 436 // part the user has already typed. |inputs| is the rest of section. |
432 // Identifying info is loaded into the last three outparams as well as | 437 // Identifying info is loaded into the last three outparams as well as |
433 // |popup_guids_|. | 438 // |popup_guids_|. |
434 void GetProfileSuggestions( | 439 void GetProfileSuggestions( |
435 ServerFieldType type, | 440 ServerFieldType type, |
436 const string16& field_contents, | 441 const string16& field_contents, |
437 const DetailInputs& inputs, | 442 const DetailInputs& inputs, |
438 std::vector<string16>* popup_values, | 443 std::vector<string16>* popup_values, |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 | 742 |
738 // A username string we display in the card scrambling/generated overlay. | 743 // A username string we display in the card scrambling/generated overlay. |
739 base::string16 submitted_cardholder_name_; | 744 base::string16 submitted_cardholder_name_; |
740 | 745 |
741 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 746 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
742 }; | 747 }; |
743 | 748 |
744 } // namespace autofill | 749 } // namespace autofill |
745 | 750 |
746 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 751 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |