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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual void OnPaymentMethodOpened() = 0; | 50 virtual void OnPaymentMethodOpened() = 0; |
51 | 51 |
52 virtual void OnShippingAddressSectionOpened() = 0; | 52 virtual void OnShippingAddressSectionOpened() = 0; |
53 | 53 |
54 virtual void OnShippingOptionSectionOpened() = 0; | 54 virtual void OnShippingOptionSectionOpened() = 0; |
55 | 55 |
56 virtual void OnCreditCardEditorOpened() = 0; | 56 virtual void OnCreditCardEditorOpened() = 0; |
57 | 57 |
58 virtual void OnShippingAddressEditorOpened() = 0; | 58 virtual void OnShippingAddressEditorOpened() = 0; |
59 | 59 |
| 60 virtual void OnContactInfoEditorOpened() = 0; |
| 61 |
60 virtual void OnBackNavigation() = 0; | 62 virtual void OnBackNavigation() = 0; |
61 | 63 |
62 virtual void OnEditorViewUpdated() = 0; | 64 virtual void OnEditorViewUpdated() = 0; |
63 | 65 |
64 virtual void OnErrorMessageShown() = 0; | 66 virtual void OnErrorMessageShown() = 0; |
65 | 67 |
66 virtual void OnSpecDoneUpdating() = 0; | 68 virtual void OnSpecDoneUpdating() = 0; |
67 | 69 |
68 virtual void OnCvcPromptShown() = 0; | 70 virtual void OnCvcPromptShown() = 0; |
69 }; | 71 }; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // |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. |
103 // |on_edited| is called when |credit_card| was successfully edited, and | 105 // |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 | 106 // |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). | 107 // short-lived; callee should make a copy of the CreditCard object). |
106 void ShowCreditCardEditor( | 108 void ShowCreditCardEditor( |
107 base::OnceClosure on_edited, | 109 base::OnceClosure on_edited, |
108 base::OnceCallback<void(const autofill::CreditCard&)> on_added, | 110 base::OnceCallback<void(const autofill::CreditCard&)> on_added, |
109 autofill::CreditCard* credit_card = nullptr); | 111 autofill::CreditCard* credit_card = nullptr); |
110 // |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. |
111 void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr); | 113 void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr); |
| 114 // |profile| is the profile to be edited, or nullptr for adding a profile. |
| 115 void ShowContactInfoEditor(autofill::AutofillProfile* profile = nullptr); |
112 void EditorViewUpdated(); | 116 void EditorViewUpdated(); |
113 | 117 |
114 void ShowCvcUnmaskPrompt( | 118 void ShowCvcUnmaskPrompt( |
115 const autofill::CreditCard& credit_card, | 119 const autofill::CreditCard& credit_card, |
116 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> | 120 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> |
117 result_delegate, | 121 result_delegate, |
118 content::WebContents* web_contents) override; | 122 content::WebContents* web_contents) override; |
119 | 123 |
120 // Shows a full dialog spinner with the "processing" label that doesn't offer | 124 // Shows a full dialog spinner with the "processing" label that doesn't offer |
121 // a way of closing the dialog. | 125 // a way of closing the dialog. |
(...skipping 29 matching lines...) Expand all Loading... |
151 // Used when the dialog is being closed to avoid re-entrancy into the | 155 // Used when the dialog is being closed to avoid re-entrancy into the |
152 // controller_map_. | 156 // controller_map_. |
153 bool being_closed_; | 157 bool being_closed_; |
154 | 158 |
155 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); | 159 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); |
156 }; | 160 }; |
157 | 161 |
158 } // namespace payments | 162 } // namespace payments |
159 | 163 |
160 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ | 164 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
OLD | NEW |