| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 // Suggested text and icons for sections. Suggestion text is used to show an | 428 // Suggested text and icons for sections. Suggestion text is used to show an |
| 424 // abridged overview of the currently used suggestion. Extra text is used when | 429 // abridged overview of the currently used suggestion. Extra text is used when |
| 425 // part of a section is suggested but part must be manually input (e.g. during | 430 // part of a section is suggested but part must be manually input (e.g. during |
| 426 // a CVC challenge or when using Autofill's CC section [never stores CVC]). | 431 // a CVC challenge or when using Autofill's CC section [never stores CVC]). |
| 427 bool SuggestionTextForSection(DialogSection section, | 432 bool SuggestionTextForSection(DialogSection section, |
| 428 base::string16* vertically_compact, | 433 base::string16* vertically_compact, |
| 429 base::string16* horizontally_compact); | 434 base::string16* horizontally_compact); |
| 430 string16 RequiredActionTextForSection(DialogSection section) const; | 435 string16 RequiredActionTextForSection(DialogSection section) const; |
| 431 gfx::Image SuggestionIconForSection(DialogSection section); | 436 gfx::Image SuggestionIconForSection(DialogSection section); |
| 432 string16 ExtraSuggestionTextForSection(DialogSection section) const; | 437 string16 ExtraSuggestionTextForSection(DialogSection section) const; |
| 433 gfx::Image ExtraSuggestionIconForSection(DialogSection section) const; | 438 gfx::Image ExtraSuggestionIconForSection(DialogSection section); |
| 434 | 439 |
| 435 // Loads profiles that can suggest data for |type|. |field_contents| is the | 440 // Loads profiles that can suggest data for |type|. |field_contents| is the |
| 436 // part the user has already typed. |inputs| is the rest of section. | 441 // part the user has already typed. |inputs| is the rest of section. |
| 437 // Identifying info is loaded into the last three outparams as well as | 442 // Identifying info is loaded into the last three outparams as well as |
| 438 // |popup_guids_|. | 443 // |popup_guids_|. |
| 439 void GetProfileSuggestions( | 444 void GetProfileSuggestions( |
| 440 ServerFieldType type, | 445 ServerFieldType type, |
| 441 const string16& field_contents, | 446 const string16& field_contents, |
| 442 const DetailInputs& inputs, | 447 const DetailInputs& inputs, |
| 443 std::vector<string16>* popup_values, | 448 std::vector<string16>* popup_values, |
| (...skipping 293 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 |