| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 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_SHIPPING_LIST_VIEW_CONTROLLER_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_VIEW_CONTROLLER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "chrome/browser/ui/views/payments/payment_request_item_list.h" | |
| 10 #include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h" | |
| 11 | |
| 12 namespace payments { | |
| 13 | |
| 14 class PaymentRequest; | |
| 15 class PaymentRequestDialogView; | |
| 16 | |
| 17 // The PaymentRequestSheetController subtype for the Shipping address list | |
| 18 // screen of the Payment Request flow. | |
| 19 class ShippingListViewController : public PaymentRequestSheetController { | |
| 20 public: | |
| 21 // Does not take ownership of the arguments, which should outlive this object. | |
| 22 ShippingListViewController(PaymentRequest* request, | |
| 23 PaymentRequestDialogView* dialog); | |
| 24 ~ShippingListViewController() override; | |
| 25 | |
| 26 // PaymentRequestSheetController: | |
| 27 std::unique_ptr<views::View> CreateView() override; | |
| 28 | |
| 29 private: | |
| 30 PaymentRequestItemList list_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(ShippingListViewController); | |
| 33 }; | |
| 34 | |
| 35 } // namespace payments | |
| 36 | |
| 37 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_VIEW_CONTROLLER_H_ | |
| OLD | NEW |