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

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

Issue 2779283002: [Web Payments] Implement the CVC Unmask dialog. (Closed)
Patch Set: BUILD 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 virtual void OnShippingAddressEditorOpened() = 0; 49 virtual void OnShippingAddressEditorOpened() = 0;
50 50
51 virtual void OnBackNavigation() = 0; 51 virtual void OnBackNavigation() = 0;
52 52
53 virtual void OnEditorViewUpdated() = 0; 53 virtual void OnEditorViewUpdated() = 0;
54 54
55 virtual void OnErrorMessageShown() = 0; 55 virtual void OnErrorMessageShown() = 0;
56 56
57 virtual void OnSpecDoneUpdating() = 0; 57 virtual void OnSpecDoneUpdating() = 0;
58
59 virtual void OnCvcPromptShown() = 0;
58 }; 60 };
59 61
60 // Build a Dialog around the PaymentRequest object. |observer| is used to 62 // Build a Dialog around the PaymentRequest object. |observer| is used to
61 // be notified of dialog events as they happen (but may be NULL) and should 63 // be notified of dialog events as they happen (but may be NULL) and should
62 // outlive this object. 64 // outlive this object.
63 PaymentRequestDialogView(PaymentRequest* request, 65 PaymentRequestDialogView(PaymentRequest* request,
64 PaymentRequestDialogView::ObserverForTest* observer); 66 PaymentRequestDialogView::ObserverForTest* observer);
65 ~PaymentRequestDialogView() override; 67 ~PaymentRequestDialogView() override;
66 68
67 // views::WidgetDelegate: 69 // views::WidgetDelegate:
(...skipping 17 matching lines...) Expand all
85 void GoBack(); 87 void GoBack();
86 void ShowContactProfileSheet(); 88 void ShowContactProfileSheet();
87 void ShowOrderSummary(); 89 void ShowOrderSummary();
88 void ShowShippingProfileSheet(); 90 void ShowShippingProfileSheet();
89 void ShowPaymentMethodSheet(); 91 void ShowPaymentMethodSheet();
90 void ShowShippingOptionSheet(); 92 void ShowShippingOptionSheet();
91 void ShowCreditCardEditor(); 93 void ShowCreditCardEditor();
92 void ShowShippingAddressEditor(); 94 void ShowShippingAddressEditor();
93 void EditorViewUpdated(); 95 void EditorViewUpdated();
94 96
97 void ShowCvcUnmaskPrompt(
98 const autofill::CreditCard& credit_card,
99 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate>
100 result_delegate,
101 content::WebContents* web_contents) override;
102
95 ViewStack* view_stack_for_testing() { return &view_stack_; } 103 ViewStack* view_stack_for_testing() { return &view_stack_; }
96 104
97 private: 105 private:
98 void ShowInitialPaymentSheet(); 106 void ShowInitialPaymentSheet();
99 107
100 // views::View 108 // views::View
101 gfx::Size GetPreferredSize() const override; 109 gfx::Size GetPreferredSize() const override;
102 void ViewHierarchyChanged( 110 void ViewHierarchyChanged(
103 const ViewHierarchyChangedDetails& details) override; 111 const ViewHierarchyChangedDetails& details) override;
104 112
(...skipping 11 matching lines...) Expand all
116 // Used when the dialog is being closed to avoid re-entrancy into the 124 // Used when the dialog is being closed to avoid re-entrancy into the
117 // controller_map_. 125 // controller_map_.
118 bool being_closed_; 126 bool being_closed_;
119 127
120 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 128 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
121 }; 129 };
122 130
123 } // namespace payments 131 } // namespace payments
124 132
125 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 133 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698