OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h" |
| 10 #include "ui/views/controls/button/button.h" |
| 11 |
| 12 namespace payments { |
| 13 |
| 14 class PaymentRequestImpl; |
| 15 class PaymentRequestDialog; |
| 16 |
| 17 // The PaymentRequestSheetController subtype for the Payment Sheet screen of the |
| 18 // Payment Request dialog. |
| 19 class PaymentSheetViewController : public PaymentRequestSheetController, |
| 20 public views::ButtonListener { |
| 21 public: |
| 22 PaymentSheetViewController(PaymentRequestImpl* impl, |
| 23 PaymentRequestDialog* dialog); |
| 24 ~PaymentSheetViewController() override; |
| 25 |
| 26 // PaymentRequestSheetController: |
| 27 std::unique_ptr<views::View> CreateView() override; |
| 28 |
| 29 private: |
| 30 // views::ButtonListener: |
| 31 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); |
| 34 }; |
| 35 |
| 36 } // namespace payments |
| 37 |
| 38 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ |
OLD | NEW |