| Index: chrome/browser/ui/views/payments/shipping_list_view_controller.h
|
| diff --git a/chrome/browser/ui/views/payments/shipping_list_view_controller.h b/chrome/browser/ui/views/payments/shipping_list_view_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9b3d441931e959a42715e3f467bad94b4b6b3b6e
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/payments/shipping_list_view_controller.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_VIEW_CONTROLLER_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_VIEW_CONTROLLER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h"
|
| +#include "ui/views/controls/button/vector_icon_button_delegate.h"
|
| +
|
| +namespace payments {
|
| +
|
| +class PaymentRequest;
|
| +class PaymentRequestDialogView;
|
| +
|
| +// The PaymentRequestSheetController subtype for the Shipping address list
|
| +// screen of the Payment Request flow.
|
| +class ShippingListViewController : public PaymentRequestSheetController,
|
| + public views::VectorIconButtonDelegate {
|
| + public:
|
| + // Does not take ownership of the arguments, which should outlive this object.
|
| + ShippingListViewController(PaymentRequest* request,
|
| + PaymentRequestDialogView* dialog);
|
| + ~ShippingListViewController() override;
|
| +
|
| + // PaymentRequestSheetController:
|
| + std::unique_ptr<views::View> CreateView() override;
|
| +
|
| + private:
|
| + // views::VectorIconButtonDelegate:
|
| + void ButtonPressed(views::Button* sender, const ui::Event& event) override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ShippingListViewController);
|
| +};
|
| +
|
| +} // namespace payments
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_SHIPPING_LIST_VIEW_CONTROLLER_H_
|
|
|