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

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

Issue 2817533006: [Web Payments] Add PopMany and Size functions to ViewStack (Closed)
Patch Set: Remove unused Observer that caused use-after-free in tests. 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnBackNavigation() = 0; 60 virtual void OnBackNavigation() = 0;
61 61
62 virtual void OnBackToPaymentSheetNavigation() = 0;
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 };
70 72
71 // Build a Dialog around the PaymentRequest object. |observer| is used to 73 // Build a Dialog around the PaymentRequest object. |observer| is used to
(...skipping 15 matching lines...) Expand all
87 void ShowDialog() override; 89 void ShowDialog() override;
88 void CloseDialog() override; 90 void CloseDialog() override;
89 void ShowErrorMessage() override; 91 void ShowErrorMessage() override;
90 92
91 // PaymentRequestSpec::Observer: 93 // PaymentRequestSpec::Observer:
92 void OnInvalidSpecProvided() override {} 94 void OnInvalidSpecProvided() override {}
93 void OnSpecUpdated() override; 95 void OnSpecUpdated() override;
94 96
95 void Pay(); 97 void Pay();
96 void GoBack(); 98 void GoBack();
99 void GoBackToPaymentSheet();
97 void ShowContactProfileSheet(); 100 void ShowContactProfileSheet();
98 void ShowOrderSummary(); 101 void ShowOrderSummary();
99 void ShowShippingProfileSheet(); 102 void ShowShippingProfileSheet();
100 void ShowPaymentMethodSheet(); 103 void ShowPaymentMethodSheet();
101 void ShowShippingOptionSheet(); 104 void ShowShippingOptionSheet();
102 // |credit_card| is the card to be edited, or nullptr for adding a card. 105 // |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 106 // |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 107 // |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). 108 // short-lived; callee should make a copy of the CreditCard object).
106 void ShowCreditCardEditor( 109 void ShowCreditCardEditor(
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Used when the dialog is being closed to avoid re-entrancy into the 154 // Used when the dialog is being closed to avoid re-entrancy into the
152 // controller_map_. 155 // controller_map_.
153 bool being_closed_; 156 bool being_closed_;
154 157
155 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 158 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
156 }; 159 };
157 160
158 } // namespace payments 161 } // namespace payments
159 162
160 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 163 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698