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

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, 7 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // |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.
105 // |on_edited| is called when |credit_card| was successfully edited, and 107 // |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 108 // |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). 109 // short-lived; callee should make a copy of the CreditCard object).
108 void ShowCreditCardEditor( 110 void ShowCreditCardEditor(
109 base::OnceClosure on_edited, 111 base::OnceClosure on_edited,
110 base::OnceCallback<void(const autofill::CreditCard&)> on_added, 112 base::OnceCallback<void(const autofill::CreditCard&)> on_added,
111 autofill::CreditCard* credit_card = nullptr); 113 autofill::CreditCard* credit_card = nullptr);
112 // |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.
113 void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr); 115 void ShowShippingAddressEditor(autofill::AutofillProfile* profile = nullptr);
116 // |profile| is the profile to be edited, or nullptr for adding a profile.
117 void ShowContactInfoEditor(autofill::AutofillProfile* profile = nullptr);
114 void EditorViewUpdated(); 118 void EditorViewUpdated();
115 119
116 void ShowCvcUnmaskPrompt( 120 void ShowCvcUnmaskPrompt(
117 const autofill::CreditCard& credit_card, 121 const autofill::CreditCard& credit_card,
118 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> 122 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
119 result_delegate, 123 result_delegate,
120 content::WebContents* web_contents) override; 124 content::WebContents* web_contents) override;
121 125
122 // Shows a full dialog spinner with the "processing" label that doesn't offer 126 // Shows a full dialog spinner with the "processing" label that doesn't offer
123 // a way of closing the dialog. 127 // a way of closing the dialog.
(...skipping 29 matching lines...) Expand all
153 // Used when the dialog is being closed to avoid re-entrancy into the 157 // Used when the dialog is being closed to avoid re-entrancy into the
154 // controller_map_. 158 // controller_map_.
155 bool being_closed_; 159 bool being_closed_;
156 160
157 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 161 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
158 }; 162 };
159 163
160 } // namespace payments 164 } // namespace payments
161 165
162 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 166 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698