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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 autofill::AutofillProfile* profile_to_edit_; | 57 autofill::AutofillProfile* profile_to_edit_; |
58 | 58 |
59 class ContactInfoValidationDelegate : public ValidationDelegate { | 59 class ContactInfoValidationDelegate : public ValidationDelegate { |
60 public: | 60 public: |
61 ContactInfoValidationDelegate(const EditorField& field, | 61 ContactInfoValidationDelegate(const EditorField& field, |
62 const std::string& locale, | 62 const std::string& locale, |
63 EditorViewController* controller); | 63 EditorViewController* controller); |
64 ~ContactInfoValidationDelegate() override; | 64 ~ContactInfoValidationDelegate() override; |
65 | 65 |
66 // ValidationDelegate: | 66 // ValidationDelegate: |
67 bool ValidateTextfield(views::Textfield* textfield) override; | 67 bool ValidateTextfield(views::Textfield* textfield, |
68 bool ValidateCombobox(views::Combobox* combobox) override; | 68 bool display_error) override; |
| 69 bool ValidateCombobox(views::Combobox* combobox, |
| 70 bool display_error) override; |
69 void ComboboxModelChanged(views::Combobox* combobox) override {} | 71 void ComboboxModelChanged(views::Combobox* combobox) override {} |
70 | 72 |
71 private: | 73 private: |
72 EditorField field_; | 74 EditorField field_; |
73 // Outlives this class. Never null. | 75 // Outlives this class. Never null. |
74 EditorViewController* controller_; | 76 EditorViewController* controller_; |
75 const std::string& locale_; | 77 const std::string& locale_; |
76 }; | 78 }; |
77 }; | 79 }; |
78 | 80 |
79 } // namespace payments | 81 } // namespace payments |
80 | 82 |
81 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_
H_ | 83 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_CONTACT_INFO_EDITOR_VIEW_CONTROLLER_
H_ |
OLD | NEW |