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