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

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

Issue 2748133004: [Payments] View controllers no longer have access to PaymentRequest (Closed)
Patch Set: Initial 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 // views::DialogDelegate 58 // views::DialogDelegate
59 bool Cancel() override; 59 bool Cancel() override;
60 bool ShouldShowCloseButton() const override; 60 bool ShouldShowCloseButton() const override;
61 int GetDialogButtons() const override; 61 int GetDialogButtons() const override;
62 62
63 // payments::PaymentRequestDialog 63 // payments::PaymentRequestDialog
64 void ShowDialog() override; 64 void ShowDialog() override;
65 void CloseDialog() override; 65 void CloseDialog() override;
66 66
67 void Pay();
67 void GoBack(); 68 void GoBack();
68 void ShowContactProfileSheet(); 69 void ShowContactProfileSheet();
69 void ShowOrderSummary(); 70 void ShowOrderSummary();
70 void ShowShippingProfileSheet(); 71 void ShowShippingProfileSheet();
71 void ShowPaymentMethodSheet(); 72 void ShowPaymentMethodSheet();
72 void ShowShippingOptionSheet(); 73 void ShowShippingOptionSheet();
73 void ShowCreditCardEditor(); 74 void ShowCreditCardEditor();
74 75
75 ViewStack* view_stack_for_testing() { return &view_stack_; } 76 ViewStack* view_stack_for_testing() { return &view_stack_; }
76 77
(...skipping 19 matching lines...) Expand all
96 // Used when the dialog is being closed to avoid re-entrancy into the 97 // Used when the dialog is being closed to avoid re-entrancy into the
97 // controller_map_. 98 // controller_map_.
98 bool being_closed_; 99 bool being_closed_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 101 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
101 }; 102 };
102 103
103 } // namespace payments 104 } // namespace payments
104 105
105 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 106 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698