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

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

Issue 2768093006: [Payments] Desktop: Error message in the dialog. (Closed)
Patch Set: Test 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 virtual void OnShippingSectionOpened() = 0; 43 virtual void OnShippingSectionOpened() = 0;
44 44
45 virtual void OnCreditCardEditorOpened() = 0; 45 virtual void OnCreditCardEditorOpened() = 0;
46 46
47 virtual void OnShippingAddressEditorOpened() = 0; 47 virtual void OnShippingAddressEditorOpened() = 0;
48 48
49 virtual void OnBackNavigation() = 0; 49 virtual void OnBackNavigation() = 0;
50 50
51 virtual void OnEditorViewUpdated() = 0; 51 virtual void OnEditorViewUpdated() = 0;
52
53 virtual void OnErrorMessageShown() = 0;
52 }; 54 };
53 55
54 // Build a Dialog around the PaymentRequest object. |observer| is used to 56 // Build a Dialog around the PaymentRequest object. |observer| is used to
55 // be notified of dialog events as they happen (but may be NULL) and should 57 // be notified of dialog events as they happen (but may be NULL) and should
56 // outlive this object. 58 // outlive this object.
57 PaymentRequestDialogView(PaymentRequest* request, 59 PaymentRequestDialogView(PaymentRequest* request,
58 PaymentRequestDialogView::ObserverForTest* observer); 60 PaymentRequestDialogView::ObserverForTest* observer);
59 ~PaymentRequestDialogView() override; 61 ~PaymentRequestDialogView() override;
60 62
61 // views::WidgetDelegate 63 // views::WidgetDelegate
62 ui::ModalType GetModalType() const override; 64 ui::ModalType GetModalType() const override;
63 65
64 // views::DialogDelegate 66 // views::DialogDelegate
65 bool Cancel() override; 67 bool Cancel() override;
66 bool ShouldShowCloseButton() const override; 68 bool ShouldShowCloseButton() const override;
67 int GetDialogButtons() const override; 69 int GetDialogButtons() const override;
68 70
69 // payments::PaymentRequestDialog 71 // payments::PaymentRequestDialog
70 void ShowDialog() override; 72 void ShowDialog() override;
71 void CloseDialog() override; 73 void CloseDialog() override;
74 void ShowErrorMessage() override;
72 75
73 void Pay(); 76 void Pay();
74 void GoBack(); 77 void GoBack();
75 void ShowContactProfileSheet(); 78 void ShowContactProfileSheet();
76 void ShowOrderSummary(); 79 void ShowOrderSummary();
77 void ShowShippingProfileSheet(); 80 void ShowShippingProfileSheet();
78 void ShowPaymentMethodSheet(); 81 void ShowPaymentMethodSheet();
79 void ShowShippingOptionSheet(); 82 void ShowShippingOptionSheet();
80 void ShowCreditCardEditor(); 83 void ShowCreditCardEditor();
81 void ShowShippingAddressEditor(); 84 void ShowShippingAddressEditor();
(...skipping 23 matching lines...) Expand all
105 // Used when the dialog is being closed to avoid re-entrancy into the 108 // Used when the dialog is being closed to avoid re-entrancy into the
106 // controller_map_. 109 // controller_map_.
107 bool being_closed_; 110 bool being_closed_;
108 111
109 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 112 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
110 }; 113 };
111 114
112 } // namespace payments 115 } // namespace payments
113 116
114 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 117 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698