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 "ui/views/controls/combobox/combobox.h" | |
| 9 #include "ui/views/controls/textfield/textfield.h" | |
| 
 
please use gerrit instead
2017/02/16 14:52:19
Please forward-declare Textfield and Combobox inst
 
Mathieu
2017/02/16 16:00:08
Done.
 
 | |
| 10 | |
| 11 namespace payments { | |
| 12 | |
| 13 class ValidationDelegate { | |
| 14 public: | |
| 15 virtual ~ValidationDelegate() {} | |
| 16 | |
| 17 // Only the delegate knows how to validate the textfield. | |
| 18 virtual bool ValidateTextfield(views::Textfield* textfield) = 0; | |
| 19 | |
| 20 virtual bool ValidateCombobox(views::Combobox* combobox) = 0; | |
| 21 }; | |
| 22 | |
| 23 } // namespace payments | |
| 24 | |
| 25 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_ | |
| OLD | NEW |