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

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

Issue 2853163002: [Web Payments] Implement proper focusing in Payment Request (Closed)
Patch Set: Allow ViewControllers to specify their first focused view 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PAYMENT_REQUEST_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // Build a Dialog around the PaymentRequest object. |observer| is used to 75 // Build a Dialog around the PaymentRequest object. |observer| is used to
76 // be notified of dialog events as they happen (but may be NULL) and should 76 // be notified of dialog events as they happen (but may be NULL) and should
77 // outlive this object. 77 // outlive this object.
78 PaymentRequestDialogView(PaymentRequest* request, 78 PaymentRequestDialogView(PaymentRequest* request,
79 PaymentRequestDialogView::ObserverForTest* observer); 79 PaymentRequestDialogView::ObserverForTest* observer);
80 ~PaymentRequestDialogView() override; 80 ~PaymentRequestDialogView() override;
81 81
82 // views::WidgetDelegate: 82 // views::WidgetDelegate:
83 ui::ModalType GetModalType() const override; 83 ui::ModalType GetModalType() const override;
84 views::View* GetInitiallyFocusedView() override;
84 85
85 // views::DialogDelegate: 86 // views::DialogDelegate:
86 bool Cancel() override; 87 bool Cancel() override;
87 bool ShouldShowCloseButton() const override; 88 bool ShouldShowCloseButton() const override;
88 int GetDialogButtons() const override; 89 int GetDialogButtons() const override;
89 90
90 // payments::PaymentRequestDialog: 91 // payments::PaymentRequestDialog:
91 void ShowDialog() override; 92 void ShowDialog() override;
92 void CloseDialog() override; 93 void CloseDialog() override;
93 void ShowErrorMessage() override; 94 void ShowErrorMessage() override;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Used when the dialog is being closed to avoid re-entrancy into the 164 // Used when the dialog is being closed to avoid re-entrancy into the
164 // controller_map_. 165 // controller_map_.
165 bool being_closed_; 166 bool being_closed_;
166 167
167 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 168 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
168 }; 169 };
169 170
170 } // namespace payments 171 } // namespace payments
171 172
172 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 173 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698