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

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

Issue 2881643002: Focus first invalid field of payment request editor (Closed)
Patch Set: Rebase 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
Index: chrome/browser/ui/views/payments/validating_combobox.h
diff --git a/chrome/browser/ui/views/payments/validating_combobox.h b/chrome/browser/ui/views/payments/validating_combobox.h
index 1ed212a879a47c4be1bed7759dc5b5d8b285f8f3..54a32936963e5a675cfc0eea279577037f262d4a 100644
--- a/chrome/browser/ui/views/payments/validating_combobox.h
+++ b/chrome/browser/ui/views/payments/validating_combobox.h
@@ -34,11 +34,11 @@ class ValidatingCombobox : public views::Combobox,
// ui::ComboboxModelObserver:
void OnComboboxModelChanged(ui::ComboboxModel* model) override;
- private:
// Will call to the ValidationDelegate to validate the contents of the
// combobox.
- void Validate();
+ void Validate(bool display_error);
+ private:
std::unique_ptr<ValidationDelegate> delegate_;
bool was_blurred_ = false;
bool being_removed_ = false;

Powered by Google App Engine
This is Rietveld 408576698