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

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

Issue 2881643002: Focus first invalid field of payment request editor (Closed)
Patch Set: Last final nit :-) Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/payments/contact_info_editor_view_controller.h
diff --git a/chrome/browser/ui/views/payments/contact_info_editor_view_controller.h b/chrome/browser/ui/views/payments/contact_info_editor_view_controller.h
index 5a0ab4af144708bc4d35814f5efc41377a966756..cebd7e7621235621ceffff3574abd9ddeeed6fec 100644
--- a/chrome/browser/ui/views/payments/contact_info_editor_view_controller.h
+++ b/chrome/browser/ui/views/payments/contact_info_editor_view_controller.h
@@ -72,11 +72,16 @@ class ContactInfoEditorViewController : public EditorViewController {
~ContactInfoValidationDelegate() override;
// ValidationDelegate:
- bool ValidateTextfield(views::Textfield* textfield) override;
- bool ValidateCombobox(views::Combobox* combobox) override;
+ bool IsValidTextfield(views::Textfield* textfield) override;
+ bool IsValidCombobox(views::Combobox* combobox) override;
+ bool TextfieldValueChanged(views::Textfield* textfield) override;
+ bool ComboboxValueChanged(views::Combobox* combobox) override;
void ComboboxModelChanged(views::Combobox* combobox) override {}
private:
+ bool ValidateTextfield(views::Textfield* textfield,
+ base::string16* error_message);
+
EditorField field_;
// Outlives this class. Never null.
EditorViewController* controller_;
« no previous file with comments | « no previous file | chrome/browser/ui/views/payments/contact_info_editor_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698