Chromium Code Reviews| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 void ShowShippingOptionSheet(); | 103 void ShowShippingOptionSheet(); |
| 104 // |credit_card| is the card to be edited, or nullptr for adding a card. | 104 // |credit_card| is the card to be edited, or nullptr for adding a card. |
| 105 // |on_edited| is called when |credit_card| was successfully edited, and | 105 // |on_edited| is called when |credit_card| was successfully edited, and |
| 106 // |on_added| is called when a new credit card was added (the reference is | 106 // |on_added| is called when a new credit card was added (the reference is |
| 107 // short-lived; callee should make a copy of the CreditCard object). | 107 // short-lived; callee should make a copy of the CreditCard object). |
| 108 void ShowCreditCardEditor( | 108 void ShowCreditCardEditor( |
| 109 base::OnceClosure on_edited, | 109 base::OnceClosure on_edited, |
| 110 base::OnceCallback<void(const autofill::CreditCard&)> on_added, | 110 base::OnceCallback<void(const autofill::CreditCard&)> on_added, |
| 111 autofill::CreditCard* credit_card = nullptr); | 111 autofill::CreditCard* credit_card = nullptr); |
| 112 // |profile| is the address to be edited, or nullptr for adding an address. | 112 // |profile| is the address to be edited, or nullptr for adding an address. |
| 113 void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr); | 113 // |on_edited| is called when |profile| was successfully edited, and |
| 114 // |on_added| is called when a new profile card was added (the reference is | |
|
Mathieu
2017/04/24 20:05:19
*new profile was added
MAD
2017/04/25 14:23:49
Done.
| |
| 115 // short-lived; callee should make a copy of the profile object). | |
| 116 void ShowShippingAddressEditor( | |
| 117 base::OnceClosure on_edited, | |
| 118 base::OnceCallback<void(const autofill::AutofillProfile&)> on_added, | |
| 119 autofill::AutofillProfile* profile); | |
| 114 void EditorViewUpdated(); | 120 void EditorViewUpdated(); |
| 115 | 121 |
| 116 void ShowCvcUnmaskPrompt( | 122 void ShowCvcUnmaskPrompt( |
| 117 const autofill::CreditCard& credit_card, | 123 const autofill::CreditCard& credit_card, |
| 118 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> | 124 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> |
| 119 result_delegate, | 125 result_delegate, |
| 120 content::WebContents* web_contents) override; | 126 content::WebContents* web_contents) override; |
| 121 | 127 |
| 122 // Shows a full dialog spinner with the "processing" label that doesn't offer | 128 // Shows a full dialog spinner with the "processing" label that doesn't offer |
| 123 // a way of closing the dialog. | 129 // a way of closing the dialog. |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 153 // Used when the dialog is being closed to avoid re-entrancy into the | 159 // Used when the dialog is being closed to avoid re-entrancy into the |
| 154 // controller_map_. | 160 // controller_map_. |
| 155 bool being_closed_; | 161 bool being_closed_; |
| 156 | 162 |
| 157 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); | 163 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); |
| 158 }; | 164 }; |
| 159 | 165 |
| 160 } // namespace payments | 166 } // namespace payments |
| 161 | 167 |
| 162 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ | 168 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
| OLD | NEW |