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

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

Issue 2656823006: [Payments] PR: Basic test for the order summary section. (Closed)
Patch Set: Rebase 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_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 15 matching lines...) Expand all
26 26
27 // The dialog delegate that represents a desktop WebPayments dialog. This class 27 // The dialog delegate that represents a desktop WebPayments dialog. This class
28 // is responsible for displaying the view associated with the current state of 28 // is responsible for displaying the view associated with the current state of
29 // the WebPayments flow and managing the transition between those states. 29 // the WebPayments flow and managing the transition between those states.
30 class PaymentRequestDialogView : public views::DialogDelegateView, 30 class PaymentRequestDialogView : public views::DialogDelegateView,
31 public PaymentRequestDialog { 31 public PaymentRequestDialog {
32 public: 32 public:
33 class ObserverForTest { 33 class ObserverForTest {
34 public: 34 public:
35 virtual void OnDialogOpened() = 0; 35 virtual void OnDialogOpened() = 0;
36
37 virtual void OnOrderSummaryOpened() = 0;
36 }; 38 };
37 39
38 // Build a Dialog around the PaymentRequest object. |observer| is used to 40 // Build a Dialog around the PaymentRequest object. |observer| is used to
39 // be notified of dialog events as they happen (but may be NULL) and should 41 // be notified of dialog events as they happen (but may be NULL) and should
40 // outlive this object. 42 // outlive this object.
41 PaymentRequestDialogView(PaymentRequest* request, 43 PaymentRequestDialogView(PaymentRequest* request,
42 PaymentRequestDialogView::ObserverForTest* observer); 44 PaymentRequestDialogView::ObserverForTest* observer);
43 ~PaymentRequestDialogView() override; 45 ~PaymentRequestDialogView() override;
44 46
45 // views::WidgetDelegate 47 // views::WidgetDelegate
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 79
78 // May be null. 80 // May be null.
79 ObserverForTest* observer_for_testing_; 81 ObserverForTest* observer_for_testing_;
80 82
81 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); 83 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView);
82 }; 84 };
83 85
84 } // namespace payments 86 } // namespace payments
85 87
86 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ 88 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698