| Index: chrome/browser/ui/views/payments/validation_delegate.h
|
| diff --git a/chrome/browser/ui/views/payments/validation_delegate.h b/chrome/browser/ui/views/payments/validation_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..060c0825b010f535d116f4da55826f85fdd6d1fa
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/payments/validation_delegate.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_
|
| +
|
| +namespace views {
|
| +class Combobox;
|
| +class Textfield;
|
| +} // namespace views
|
| +
|
| +namespace payments {
|
| +
|
| +class ValidationDelegate {
|
| + public:
|
| + virtual ~ValidationDelegate() {}
|
| +
|
| + // Only the delegate knows how to validate the textfield.
|
| + virtual bool ValidateTextfield(views::Textfield* textfield) = 0;
|
| +
|
| + virtual bool ValidateCombobox(views::Combobox* combobox) = 0;
|
| +};
|
| +
|
| +} // namespace payments
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_
|
|
|