| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 PaymentRequestDialogView* dialog, | 41 PaymentRequestDialogView* dialog, |
| 42 BackNavigationType back_navigation, | 42 BackNavigationType back_navigation, |
| 43 int next_ui_tag, | 43 int next_ui_tag, |
| 44 base::OnceClosure on_edited, | 44 base::OnceClosure on_edited, |
| 45 base::OnceCallback<void(const autofill::CreditCard&)> on_added, | 45 base::OnceCallback<void(const autofill::CreditCard&)> on_added, |
| 46 autofill::CreditCard* credit_card); | 46 autofill::CreditCard* credit_card); |
| 47 ~CreditCardEditorViewController() override; | 47 ~CreditCardEditorViewController() override; |
| 48 | 48 |
| 49 // EditorViewController: | 49 // EditorViewController: |
| 50 std::unique_ptr<views::View> CreateHeaderView() override; | 50 std::unique_ptr<views::View> CreateHeaderView() override; |
| 51 std::unique_ptr<views::View> CreateCustomFieldView( | 51 std::unique_ptr<views::View> CreateExtraViewForField( |
| 52 autofill::ServerFieldType type) override; | 52 autofill::ServerFieldType type) override; |
| 53 std::vector<EditorField> GetFieldDefinitions() override; | 53 std::vector<EditorField> GetFieldDefinitions() override; |
| 54 base::string16 GetInitialValueForType( | 54 base::string16 GetInitialValueForType( |
| 55 autofill::ServerFieldType type) override; | 55 autofill::ServerFieldType type) override; |
| 56 bool ValidateModelAndSave() override; | 56 bool ValidateModelAndSave() override; |
| 57 std::unique_ptr<ValidationDelegate> CreateValidationDelegate( | 57 std::unique_ptr<ValidationDelegate> CreateValidationDelegate( |
| 58 const EditorField& field) override; | 58 const EditorField& field) override; |
| 59 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( | 59 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( |
| 60 const autofill::ServerFieldType& type) override; | 60 const autofill::ServerFieldType& type) override; |
| 61 | 61 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 // The value to use for the add billing address button tag. | 114 // The value to use for the add billing address button tag. |
| 115 int add_billing_address_button_tag_; | 115 int add_billing_address_button_tag_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController); | 117 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } // namespace payments | 120 } // namespace payments |
| 121 | 121 |
| 122 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H
_ | 122 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H
_ |
| OLD | NEW |