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

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

Issue 2853163002: [Web Payments] Implement proper focusing in Payment Request (Closed)
Patch Set: Address comments. 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 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 de74d3d2fb21ca3c8bc975ddd53e992875dc9cc4..8752e2a8ee51a900ea1c8345c74063e4743cbb2f 100644
--- a/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
+++ b/chrome/browser/ui/views/payments/payment_request_dialog_view.cc
@@ -86,6 +86,10 @@ ui::ModalType PaymentRequestDialogView::GetModalType() const {
return ui::MODAL_TYPE_CHILD;
}
+views::View* PaymentRequestDialogView::GetInitiallyFocusedView() {
+ return view_stack_.get();
+}
+
bool PaymentRequestDialogView::Cancel() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
// Called when the widget is about to close. We send a message to the

Powered by Google App Engine
This is Rietveld 408576698