OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |