| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void ShowShippingOptionSheet(); | 105 void ShowShippingOptionSheet(); |
| 106 // |credit_card| is the card to be edited, or nullptr for adding a card. | 106 // |credit_card| is the card to be edited, or nullptr for adding a card. |
| 107 // |on_edited| is called when |credit_card| was successfully edited, and | 107 // |on_edited| is called when |credit_card| was successfully edited, and |
| 108 // |on_added| is called when a new credit card was added (the reference is | 108 // |on_added| is called when a new credit card was added (the reference is |
| 109 // short-lived; callee should make a copy of the CreditCard object). | 109 // short-lived; callee should make a copy of the CreditCard object). |
| 110 void ShowCreditCardEditor( | 110 void ShowCreditCardEditor( |
| 111 base::OnceClosure on_edited, | 111 base::OnceClosure on_edited, |
| 112 base::OnceCallback<void(const autofill::CreditCard&)> on_added, | 112 base::OnceCallback<void(const autofill::CreditCard&)> on_added, |
| 113 autofill::CreditCard* credit_card = nullptr); | 113 autofill::CreditCard* credit_card = nullptr); |
| 114 // |profile| is the address to be edited, or nullptr for adding an address. | 114 // |profile| is the address to be edited, or nullptr for adding an address. |
| 115 void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr); | 115 // |on_edited| is called when |profile| was successfully edited, and |
| 116 // |on_added| is called when a new profile was added (the reference is |
| 117 // short-lived; callee should make a copy of the profile object). |
| 118 void ShowShippingAddressEditor( |
| 119 base::OnceClosure on_edited, |
| 120 base::OnceCallback<void(const autofill::AutofillProfile&)> on_added, |
| 121 autofill::AutofillProfile* profile); |
| 116 // |profile| is the profile to be edited, or nullptr for adding a profile. | 122 // |profile| is the profile to be edited, or nullptr for adding a profile. |
| 117 void ShowContactInfoEditor(autofill::AutofillProfile* profile = nullptr); | 123 void ShowContactInfoEditor(autofill::AutofillProfile* profile = nullptr); |
| 118 void EditorViewUpdated(); | 124 void EditorViewUpdated(); |
| 119 | 125 |
| 120 void ShowCvcUnmaskPrompt( | 126 void ShowCvcUnmaskPrompt( |
| 121 const autofill::CreditCard& credit_card, | 127 const autofill::CreditCard& credit_card, |
| 122 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> | 128 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> |
| 123 result_delegate, | 129 result_delegate, |
| 124 content::WebContents* web_contents) override; | 130 content::WebContents* web_contents) override; |
| 125 | 131 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // Used when the dialog is being closed to avoid re-entrancy into the | 163 // Used when the dialog is being closed to avoid re-entrancy into the |
| 158 // controller_map_. | 164 // controller_map_. |
| 159 bool being_closed_; | 165 bool being_closed_; |
| 160 | 166 |
| 161 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); | 167 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); |
| 162 }; | 168 }; |
| 163 | 169 |
| 164 } // namespace payments | 170 } // namespace payments |
| 165 | 171 |
| 166 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ | 172 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
| OLD | NEW |