Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: chrome/browser/ui/views/payments/payment_request_dialog_view.h

Issue 2816083002: [WebPayments] Desktop implementation of Contact Editor (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 OnBackToPaymentSheetNavigation() = 0; 64 virtual void OnBackToPaymentSheetNavigation() = 0;
63 65
64 virtual void OnEditorViewUpdated() = 0; 66 virtual void OnEditorViewUpdated() = 0;
65 67
66 virtual void OnErrorMessageShown() = 0; 68 virtual void OnErrorMessageShown() = 0;
67 69
68 virtual void OnSpecDoneUpdating() = 0; 70 virtual void OnSpecDoneUpdating() = 0;
69 71
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // |credit_card| is the card to be edited, or nullptr for adding a card. 107 // |credit_card| is the card to be edited, or nullptr for adding a card.
106 // |on_edited| is called when |credit_card| was successfully edited, and 108 // |on_edited| is called when |credit_card| was successfully edited, and
107 // |on_added| is called when a new credit card was added (the reference is 109 // |on_added| is called when a new credit card was added (the reference is
108 // short-lived; callee should make a copy of the CreditCard object). 110 // short-lived; callee should make a copy of the CreditCard object).
109 void ShowCreditCardEditor( 111 void ShowCreditCardEditor(
110 base::OnceClosure on_edited, 112 base::OnceClosure on_edited,
111 base::OnceCallback<void(const autofill::CreditCard&)> on_added, 113 base::OnceCallback<void(const autofill::CreditCard&)> on_added,
112 autofill::CreditCard* credit_card = nullptr); 114 autofill::CreditCard* credit_card = nullptr);
113 // |profile| is the address to be edited, or nullptr for adding an address. 115 // |profile| is the address to be edited, or nullptr for adding an address.
114 void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr); 116 void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr);
117 // |profile| is the profile to be edited, or nullptr for adding a profile.
118 void ShowContactInfoEditor(autofill::AutofillProfile* profile = nullptr);
115 void EditorViewUpdated(); 119 void EditorViewUpdated();
116 120
117 void ShowCvcUnmaskPrompt( 121 void ShowCvcUnmaskPrompt(
118 const autofill::CreditCard& credit_card, 122 const autofill::CreditCard& credit_card,
119 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> 123 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
120 result_delegate, 124 result_delegate,
121 content::WebContents* web_contents) override; 125 content::WebContents* web_contents) override;
122 126
123 // Shows a full dialog spinner with the "processing" label that doesn't offer 127 // Shows a full dialog spinner with the "processing" label that doesn't offer
124 // a way of closing the dialog. 128 // a way of closing the dialog.
(...skipping 29 matching lines...) Expand all
154 // Used when the dialog is being closed to avoid re-entrancy into the 158 // Used when the dialog is being closed to avoid re-entrancy into the
155 // controller_map_. 159 // controller_map_.
156 bool being_closed_; 160 bool being_closed_;
157 161
158 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 162 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
159 }; 163 };
160 164
161 } // namespace payments 165 } // namespace payments
162 166
163 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 167 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698