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

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

Issue 2709093006: Adding new shipping address editor view to payment flow. (Closed)
Patch Set: Rebase and bot error fixes Created 3 years, 9 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 24 matching lines...) Expand all
35 virtual void OnDialogOpened() = 0; 35 virtual void OnDialogOpened() = 0;
36 36
37 virtual void OnContactInfoOpened() = 0; 37 virtual void OnContactInfoOpened() = 0;
38 38
39 virtual void OnOrderSummaryOpened() = 0; 39 virtual void OnOrderSummaryOpened() = 0;
40 40
41 virtual void OnPaymentMethodOpened() = 0; 41 virtual void OnPaymentMethodOpened() = 0;
42 42
43 virtual void OnCreditCardEditorOpened() = 0; 43 virtual void OnCreditCardEditorOpened() = 0;
44 44
45 virtual void OnShippingAddressEditorOpened() = 0;
46
45 virtual void OnBackNavigation() = 0; 47 virtual void OnBackNavigation() = 0;
46 }; 48 };
47 49
48 // Build a Dialog around the PaymentRequest object. |observer| is used to 50 // Build a Dialog around the PaymentRequest object. |observer| is used to
49 // be notified of dialog events as they happen (but may be NULL) and should 51 // be notified of dialog events as they happen (but may be NULL) and should
50 // outlive this object. 52 // outlive this object.
51 PaymentRequestDialogView(PaymentRequest* request, 53 PaymentRequestDialogView(PaymentRequest* request,
52 PaymentRequestDialogView::ObserverForTest* observer); 54 PaymentRequestDialogView::ObserverForTest* observer);
53 ~PaymentRequestDialogView() override; 55 ~PaymentRequestDialogView() override;
54 56
(...skipping 10 matching lines...) Expand all
65 void CloseDialog() override; 67 void CloseDialog() override;
66 68
67 void Pay(); 69 void Pay();
68 void GoBack(); 70 void GoBack();
69 void ShowContactProfileSheet(); 71 void ShowContactProfileSheet();
70 void ShowOrderSummary(); 72 void ShowOrderSummary();
71 void ShowShippingProfileSheet(); 73 void ShowShippingProfileSheet();
72 void ShowPaymentMethodSheet(); 74 void ShowPaymentMethodSheet();
73 void ShowShippingOptionSheet(); 75 void ShowShippingOptionSheet();
74 void ShowCreditCardEditor(); 76 void ShowCreditCardEditor();
77 void ShowShippingAddressEditor();
75 78
76 ViewStack* view_stack_for_testing() { return &view_stack_; } 79 ViewStack* view_stack_for_testing() { return &view_stack_; }
77 80
78 private: 81 private:
79 void ShowInitialPaymentSheet(); 82 void ShowInitialPaymentSheet();
80 83
81 // views::View 84 // views::View
82 gfx::Size GetPreferredSize() const override; 85 gfx::Size GetPreferredSize() const override;
83 void ViewHierarchyChanged( 86 void ViewHierarchyChanged(
84 const ViewHierarchyChangedDetails& details) override; 87 const ViewHierarchyChangedDetails& details) override;
(...skipping 12 matching lines...) Expand all
97 // Used when the dialog is being closed to avoid re-entrancy into the 100 // Used when the dialog is being closed to avoid re-entrancy into the
98 // controller_map_. 101 // controller_map_.
99 bool being_closed_; 102 bool being_closed_;
100 103
101 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 104 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
102 }; 105 };
103 106
104 } // namespace payments 107 } // namespace payments
105 108
106 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 109 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698