| 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_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace payments { | 21 namespace payments { |
| 22 | 22 |
| 23 class ContactInfoEditorViewController : public EditorViewController { | 23 class ContactInfoEditorViewController : public EditorViewController { |
| 24 public: | 24 public: |
| 25 // Does not take ownership of the arguments, which should outlive this object. | 25 // Does not take ownership of the arguments, which should outlive this object. |
| 26 // Passing nullptr as |profile| indicates that we are editing a new profile; | 26 // Passing nullptr as |profile| indicates that we are editing a new profile; |
| 27 // other arguments should never be null. | 27 // other arguments should never be null. |
| 28 ContactInfoEditorViewController(PaymentRequestSpec* spec, | 28 ContactInfoEditorViewController(PaymentRequestSpec* spec, |
| 29 PaymentRequestState* state, | 29 PaymentRequestState* state, |
| 30 PaymentRequestDialogView* dialog, | 30 PaymentRequestDialogView* dialog, |
| 31 BackNavigationType back_navigation_type, |
| 31 autofill::AutofillProfile* profile); | 32 autofill::AutofillProfile* profile); |
| 32 ~ContactInfoEditorViewController() override; | 33 ~ContactInfoEditorViewController() override; |
| 33 | 34 |
| 34 // EditorViewController: | 35 // EditorViewController: |
| 35 std::unique_ptr<views::View> CreateHeaderView() override; | 36 std::unique_ptr<views::View> CreateHeaderView() override; |
| 37 std::unique_ptr<views::View> CreateCustomFieldView( |
| 38 autofill::ServerFieldType type) override; |
| 39 |
| 36 std::vector<EditorField> GetFieldDefinitions() override; | 40 std::vector<EditorField> GetFieldDefinitions() override; |
| 37 base::string16 GetInitialValueForType( | 41 base::string16 GetInitialValueForType( |
| 38 autofill::ServerFieldType type) override; | 42 autofill::ServerFieldType type) override; |
| 39 bool ValidateModelAndSave() override; | 43 bool ValidateModelAndSave() override; |
| 40 std::unique_ptr<ValidationDelegate> CreateValidationDelegate( | 44 std::unique_ptr<ValidationDelegate> CreateValidationDelegate( |
| 41 const EditorField& field) override; | 45 const EditorField& field) override; |
| 42 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( | 46 std::unique_ptr<ui::ComboboxModel> GetComboboxModelForType( |
| 43 const autofill::ServerFieldType& type) override; | 47 const autofill::ServerFieldType& type) override; |
| 44 | 48 |
| 45 protected: | 49 protected: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 72 EditorField field_; | 76 EditorField field_; |
| 73 // Outlives this class. Never null. | 77 // Outlives this class. Never null. |
| 74 EditorViewController* controller_; | 78 EditorViewController* controller_; |
| 75 const std::string& locale_; | 79 const std::string& locale_; |
| 76 }; | 80 }; |
| 77 }; | 81 }; |
| 78 | 82 |
| 79 } // namespace payments | 83 } // namespace payments |
| 80 | 84 |
| 81 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_
H_ | 85 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_
H_ |
| OLD | NEW |