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

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

Issue 2643643006: [WebPayments] Adding something resembling Shipping Address list (Closed)
Patch Set: Further rebasing Created 3 years, 10 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool Cancel() override; 49 bool Cancel() override;
50 bool ShouldShowCloseButton() const override; 50 bool ShouldShowCloseButton() const override;
51 int GetDialogButtons() const override; 51 int GetDialogButtons() const override;
52 52
53 // payments::PaymentRequestDialog 53 // payments::PaymentRequestDialog
54 void ShowDialog() override; 54 void ShowDialog() override;
55 void CloseDialog() override; 55 void CloseDialog() override;
56 56
57 void GoBack(); 57 void GoBack();
58 void ShowOrderSummary(); 58 void ShowOrderSummary();
59 void ShowShippingListSheet();
59 void ShowPaymentMethodSheet(); 60 void ShowPaymentMethodSheet();
60 61
61 private: 62 private:
62 void ShowInitialPaymentSheet(); 63 void ShowInitialPaymentSheet();
63 64
64 // views::View 65 // views::View
65 gfx::Size GetPreferredSize() const override; 66 gfx::Size GetPreferredSize() const override;
66 void ViewHierarchyChanged( 67 void ViewHierarchyChanged(
67 const ViewHierarchyChangedDetails& details) override; 68 const ViewHierarchyChangedDetails& details) override;
68 69
69 // Non-owned reference to the PaymentRequest that initiated this dialog. Since 70 // Non-owned reference to the PaymentRequest that initiated this dialog. Since
70 // the PaymentRequest object always outlives this one, the pointer should 71 // the PaymentRequest object always outlives this one, the pointer should
71 // always be valid even though there is no direct ownership relationship 72 // always be valid even though there is no direct ownership relationship
72 // between the two. 73 // between the two.
73 PaymentRequest* request_; 74 PaymentRequest* request_;
74 ControllerMap controller_map_; 75 ControllerMap controller_map_;
75 ViewStack view_stack_; 76 ViewStack view_stack_;
76 77
77 // May be null. 78 // May be null.
78 ObserverForTest* observer_for_testing_; 79 ObserverForTest* observer_for_testing_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 81 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
81 }; 82 };
82 83
83 } // namespace payments 84 } // namespace payments
84 85
85 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 86 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/payments/payment_request_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698