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

Unified Diff: chrome/browser/ui/views/payments/payment_request_dialog_view.cc

Issue 2881643002: Focus first invalid field of payment request editor (Closed)
Patch Set: Updated API to create field views other small tweaks. 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/payment_request_dialog_view.cc
diff --git a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
index d1f472fd9d093ec3084e69e5d54a95f4f9b74be2..dab27bdae7bbb4ed7ab781b08c378a1bddf5978e 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
@@ -84,6 +84,10 @@ PaymentRequestDialogView::PaymentRequestDialogView(
PaymentRequestDialogView::~PaymentRequestDialogView() {}
+void PaymentRequestDialogView::RequestFocus() {
+ view_stack_->RequestFocus();
+}
+
ui::ModalType PaymentRequestDialogView::GetModalType() const {
return ui::MODAL_TYPE_CHILD;
}

Powered by Google App Engine
This is Rietveld 408576698