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( |
| 52 autofill::ServerFieldType type) override; |
51 std::unique_ptr<views::View> CreateExtraViewForField( | 53 std::unique_ptr<views::View> CreateExtraViewForField( |
52 autofill::ServerFieldType type) override; | 54 autofill::ServerFieldType type) override; |
53 std::vector<EditorField> GetFieldDefinitions() override; | 55 std::vector<EditorField> GetFieldDefinitions() override; |
54 base::string16 GetInitialValueForType( | 56 base::string16 GetInitialValueForType( |
55 autofill::ServerFieldType type) override; | 57 autofill::ServerFieldType type) override; |
56 bool ValidateModelAndSave() override; | 58 bool ValidateModelAndSave() override; |
57 std::unique_ptr<ValidationDelegate> CreateValidationDelegate( | 59 std::unique_ptr<ValidationDelegate> CreateValidationDelegate( |
58 const EditorField& field) override; | 60 const EditorField& field) override; |
59 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( | 61 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( |
60 const autofill::ServerFieldType& type) override; | 62 const autofill::ServerFieldType& type) override; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 115 |
114 // The value to use for the add billing address button tag. | 116 // The value to use for the add billing address button tag. |
115 int add_billing_address_button_tag_; | 117 int add_billing_address_button_tag_; |
116 | 118 |
117 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController); | 119 DISALLOW_COPY_AND_ASSIGN(CreditCardEditorViewController); |
118 }; | 120 }; |
119 | 121 |
120 } // namespace payments | 122 } // namespace payments |
121 | 123 |
122 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H
_ | 124 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CREDIT_CARD_EDITOR_VIEW_CONTROLLER_H
_ |
OLD | NEW |