Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1118)

Unified Diff: chrome/browser/ui/views/payments/validation_delegate.h

Issue 2689363004: [Payments] Add combobox support to editors. (Closed)
Patch Set: addressed comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..7c462cd738c97731db1c36cd087153713f9bb994
--- /dev/null
+++ b/chrome/browser/ui/views/payments/validation_delegate.h
@@ -0,0 +1,25 @@
+// 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_
+
+#include "ui/views/controls/combobox/combobox.h"
+#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.
+
+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_

Powered by Google App Engine
This is Rietveld 408576698