Chromium Code Reviews| OLD | NEW | 
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "ui/views/controls/combobox/combobox.h" | |
| 10 #include "ui/views/controls/textfield/textfield.h" | |
| 11 | |
| 12 namespace payments { | |
| 13 | |
| 14 class ValidationDelegate { | |
| 15 public: | |
| 16 ValidationDelegate() {} | |
| 
 
please use gerrit instead
2017/02/15 15:59:39
Interfaces should not need constructors and DISALL
 
Mathieu
2017/02/15 19:55:51
Done.
 
 | |
| 17 virtual ~ValidationDelegate() {} | |
| 18 | |
| 19 // Only the delegate knows how to validate the textfield. | |
| 20 virtual bool ValidateTextfield(views::Textfield* textfield) = 0; | |
| 21 | |
| 22 virtual bool ValidateCombobox(views::Combobox* combobox) = 0; | |
| 23 | |
| 24 private: | |
| 25 DISALLOW_COPY_AND_ASSIGN(ValidationDelegate); | |
| 26 }; | |
| 27 | |
| 28 } // namespace payments | |
| 29 | |
| 30 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_ | |
| OLD | NEW |