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

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

Issue 2621153002: [WebPayments] Add the Payment Method section in the Payment Sheet (Closed)
Patch Set: Fix BUILD.gn deps. Created 3 years, 11 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_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 23 matching lines...) Expand all
34 // views::WidgetDelegate 34 // views::WidgetDelegate
35 ui::ModalType GetModalType() const override; 35 ui::ModalType GetModalType() const override;
36 36
37 // views::DialogDelegate 37 // views::DialogDelegate
38 bool Cancel() override; 38 bool Cancel() override;
39 bool ShouldShowCloseButton() const override; 39 bool ShouldShowCloseButton() const override;
40 int GetDialogButtons() const override; 40 int GetDialogButtons() const override;
41 41
42 void GoBack(); 42 void GoBack();
43 void ShowOrderSummary(); 43 void ShowOrderSummary();
44 void ShowPaymentMethodSheet();
44 void CloseDialog(); 45 void CloseDialog();
45 46
46 private: 47 private:
47 void ShowInitialPaymentSheet(); 48 void ShowInitialPaymentSheet();
48 49
49 // views::View 50 // views::View
50 gfx::Size GetPreferredSize() const override; 51 gfx::Size GetPreferredSize() const override;
51 void ViewHierarchyChanged(const ViewHierarchyChangedDetails& details) 52 void ViewHierarchyChanged(const ViewHierarchyChangedDetails& details)
52 override; 53 override;
53 54
54 // Non-owned reference to the PaymentRequest that initiated this dialog. Since 55 // Non-owned reference to the PaymentRequest that initiated this dialog. Since
55 // the PaymentRequest object always outlives this one, the pointer should 56 // the PaymentRequest object always outlives this one, the pointer should
56 // always be valid even though there is no direct ownership relationship 57 // always be valid even though there is no direct ownership relationship
57 // between the two. 58 // between the two.
58 PaymentRequest* request_; 59 PaymentRequest* request_;
59 ControllerMap controller_map_; 60 ControllerMap controller_map_;
60 ViewStack view_stack_; 61 ViewStack view_stack_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialog); 63 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialog);
63 }; 64 };
64 65
65 } // namespace payments 66 } // namespace payments
66 67
67 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_H_ 68 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698