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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 bool Cancel() override; | 84 bool Cancel() override; |
85 bool ShouldShowCloseButton() const override; | 85 bool ShouldShowCloseButton() const override; |
86 int GetDialogButtons() const override; | 86 int GetDialogButtons() const override; |
87 | 87 |
88 // payments::PaymentRequestDialog: | 88 // payments::PaymentRequestDialog: |
89 void ShowDialog() override; | 89 void ShowDialog() override; |
90 void CloseDialog() override; | 90 void CloseDialog() override; |
91 void ShowErrorMessage() override; | 91 void ShowErrorMessage() override; |
92 | 92 |
93 // PaymentRequestSpec::Observer: | 93 // PaymentRequestSpec::Observer: |
94 void OnInvalidSpecProvided() override {} | |
95 void OnSpecUpdated() override; | 94 void OnSpecUpdated() override; |
96 | 95 |
97 void Pay(); | 96 void Pay(); |
98 void GoBack(); | 97 void GoBack(); |
99 void GoBackToPaymentSheet(); | 98 void GoBackToPaymentSheet(); |
100 void ShowContactProfileSheet(); | 99 void ShowContactProfileSheet(); |
101 void ShowOrderSummary(); | 100 void ShowOrderSummary(); |
102 void ShowShippingProfileSheet(); | 101 void ShowShippingProfileSheet(); |
103 void ShowPaymentMethodSheet(); | 102 void ShowPaymentMethodSheet(); |
104 void ShowShippingOptionSheet(); | 103 void ShowShippingOptionSheet(); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // Used when the dialog is being closed to avoid re-entrancy into the | 153 // Used when the dialog is being closed to avoid re-entrancy into the |
155 // controller_map_. | 154 // controller_map_. |
156 bool being_closed_; | 155 bool being_closed_; |
157 | 156 |
158 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); | 157 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); |
159 }; | 158 }; |
160 | 159 |
161 } // namespace payments | 160 } // namespace payments |
162 | 161 |
163 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ | 162 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
OLD | NEW |