| 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 const OVERRIDE; | 125 const OVERRIDE; |
| 126 virtual ui::ComboboxModel* ComboboxModelForAutofillType( | 126 virtual ui::ComboboxModel* ComboboxModelForAutofillType( |
| 127 ServerFieldType type) OVERRIDE; | 127 ServerFieldType type) OVERRIDE; |
| 128 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; | 128 virtual ui::MenuModel* MenuModelForSection(DialogSection section) OVERRIDE; |
| 129 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; | 129 virtual string16 LabelForSection(DialogSection section) const OVERRIDE; |
| 130 virtual SuggestionState SuggestionStateForSection( | 130 virtual SuggestionState SuggestionStateForSection( |
| 131 DialogSection section) OVERRIDE; | 131 DialogSection section) OVERRIDE; |
| 132 virtual void EditClickedForSection(DialogSection section) OVERRIDE; | 132 virtual void EditClickedForSection(DialogSection section) OVERRIDE; |
| 133 virtual gfx::Image IconForField(ServerFieldType type, | 133 virtual gfx::Image IconForField(ServerFieldType type, |
| 134 const string16& user_input) const OVERRIDE; | 134 const string16& user_input) const OVERRIDE; |
| 135 virtual bool IsIconDependentField(ServerFieldType dependent_type) |
| 136 const OVERRIDE; |
| 137 virtual bool IsIconDependencyField(ServerFieldType dependency_type, |
| 138 ServerFieldType* dependent_type) |
| 139 const OVERRIDE; |
| 135 virtual string16 InputValidityMessage(DialogSection section, | 140 virtual string16 InputValidityMessage(DialogSection section, |
| 136 ServerFieldType type, | 141 ServerFieldType type, |
| 137 const string16& value) OVERRIDE; | 142 const string16& value) OVERRIDE; |
| 138 virtual ValidityData InputsAreValid( | 143 virtual ValidityData InputsAreValid( |
| 139 DialogSection section, | 144 DialogSection section, |
| 140 const DetailOutputMap& inputs, | 145 const DetailOutputMap& inputs, |
| 141 ValidationType validation_type) OVERRIDE; | 146 ValidationType validation_type) OVERRIDE; |
| 142 virtual void UserEditedOrActivatedInput(DialogSection section, | 147 virtual void UserEditedOrActivatedInput(DialogSection section, |
| 143 const DetailInput* input, | 148 const DetailInput* input, |
| 144 gfx::NativeView parent_view, | 149 gfx::NativeView parent_view, |
| (...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 | 710 |
| 706 // Populated if the user chose to save a newly inputted credit card. Used to | 711 // Populated if the user chose to save a newly inputted credit card. Used to |
| 707 // show a bubble as the dialog closes to confirm a user's new card info was | 712 // show a bubble as the dialog closes to confirm a user's new card info was |
| 708 // saved. Never populated while incognito (as nothing's actually saved). | 713 // saved. Never populated while incognito (as nothing's actually saved). |
| 709 scoped_ptr<CreditCard> newly_saved_card_; | 714 scoped_ptr<CreditCard> newly_saved_card_; |
| 710 | 715 |
| 711 // The timer that delays enabling submit button for a short period of time on | 716 // The timer that delays enabling submit button for a short period of time on |
| 712 // startup. | 717 // startup. |
| 713 base::OneShotTimer<AutofillDialogControllerImpl> submit_button_delay_timer_; | 718 base::OneShotTimer<AutofillDialogControllerImpl> submit_button_delay_timer_; |
| 714 | 719 |
| 720 // Map from field types whose value controls other field types icon to the |
| 721 // field types whose icon is controlled. |
| 722 std::map<ServerFieldType, ServerFieldType> icon_dependencies_; |
| 723 |
| 715 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 724 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 716 }; | 725 }; |
| 717 | 726 |
| 718 } // namespace autofill | 727 } // namespace autofill |
| 719 | 728 |
| 720 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 729 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |