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

Side by Side Diff: chrome/browser/ui/views/payments/validation_delegate.h

Issue 2803443003: [Payments] Added region load failure tolerance and tests to PR editor. (Closed)
Patch Set: Removed unneeded include. Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/payments/validating_textfield_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_VALIDATION_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_
7 7
8 namespace views { 8 namespace views {
9 class Combobox; 9 class Combobox;
10 class Textfield; 10 class Textfield;
11 } // namespace views 11 } // namespace views
12 12
13 namespace payments { 13 namespace payments {
14 14
15 class ValidationDelegate { 15 class ValidationDelegate {
16 public: 16 public:
17 virtual ~ValidationDelegate() {} 17 virtual ~ValidationDelegate() {}
18 18
19 // Only the delegate knows how to validate the textfield. 19 // Only the delegate knows how to validate the textfield.
20 virtual bool ValidateTextfield(views::Textfield* textfield) = 0; 20 virtual bool ValidateTextfield(views::Textfield* textfield) = 0;
21 21
22 virtual bool ValidateCombobox(views::Combobox* combobox) = 0; 22 virtual bool ValidateCombobox(views::Combobox* combobox) = 0;
23 virtual void ComboboxModelChanged(views::Combobox* combobox) = 0;
23 }; 24 };
24 25
25 } // namespace payments 26 } // namespace payments
26 27
27 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_ 28 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_VALIDATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/payments/validating_textfield_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698