| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |