| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 void ShowDialog() override; | 87 void ShowDialog() override; |
| 88 void CloseDialog() override; | 88 void CloseDialog() override; |
| 89 void ShowErrorMessage() override; | 89 void ShowErrorMessage() override; |
| 90 | 90 |
| 91 // PaymentRequestSpec::Observer: | 91 // PaymentRequestSpec::Observer: |
| 92 void OnInvalidSpecProvided() override {} | 92 void OnInvalidSpecProvided() override {} |
| 93 void OnSpecUpdated() override; | 93 void OnSpecUpdated() override; |
| 94 | 94 |
| 95 void Pay(); | 95 void Pay(); |
| 96 void GoBack(); | 96 void GoBack(); |
| 97 void GoBackToPaymentSheet(); |
| 97 void ShowContactProfileSheet(); | 98 void ShowContactProfileSheet(); |
| 98 void ShowOrderSummary(); | 99 void ShowOrderSummary(); |
| 99 void ShowShippingProfileSheet(); | 100 void ShowShippingProfileSheet(); |
| 100 void ShowPaymentMethodSheet(); | 101 void ShowPaymentMethodSheet(); |
| 101 void ShowShippingOptionSheet(); | 102 void ShowShippingOptionSheet(); |
| 102 // |credit_card| is the card to be edited, or nullptr for adding a card. | 103 // |credit_card| is the card to be edited, or nullptr for adding a card. |
| 103 // |on_edited| is called when |credit_card| was successfully edited, and | 104 // |on_edited| is called when |credit_card| was successfully edited, and |
| 104 // |on_added| is called when a new credit card was added (the reference is | 105 // |on_added| is called when a new credit card was added (the reference is |
| 105 // short-lived; callee should make a copy of the CreditCard object). | 106 // short-lived; callee should make a copy of the CreditCard object). |
| 106 void ShowCreditCardEditor( | 107 void ShowCreditCardEditor( |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 // Used when the dialog is being closed to avoid re-entrancy into the | 152 // Used when the dialog is being closed to avoid re-entrancy into the |
| 152 // controller_map_. | 153 // controller_map_. |
| 153 bool being_closed_; | 154 bool being_closed_; |
| 154 | 155 |
| 155 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); | 156 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 } // namespace payments | 159 } // namespace payments |
| 159 | 160 |
| 160 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ | 161 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
| OLD | NEW |