| Index: chrome/browser/ui/views/payments/error_message_view_controller.h
|
| diff --git a/chrome/browser/ui/views/payments/error_message_view_controller.h b/chrome/browser/ui/views/payments/error_message_view_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..32b8ff6f82872445aabb905f9277ebd72be386f6
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/payments/error_message_view_controller.h
|
| @@ -0,0 +1,45 @@
|
| +// 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_ERROR_MESSAGE_VIEW_CONTROLLER_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_ERROR_MESSAGE_VIEW_CONTROLLER_H_
|
| +
|
| +#include <memory>
|
| +
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h"
|
| +
|
| +namespace views {
|
| +class View;
|
| +}
|
| +
|
| +namespace payments {
|
| +
|
| +class PaymentRequestSpec;
|
| +class PaymentRequestState;
|
| +class PaymentRequestDialogView;
|
| +
|
| +// The PaymentRequestSheetController subtype for the Error Message screen of the
|
| +// Payment Request flow.
|
| +class ErrorMessageViewController : public PaymentRequestSheetController {
|
| + public:
|
| + // Does not take ownership of the arguments, which should outlive this object.
|
| + ErrorMessageViewController(PaymentRequestSpec* spec,
|
| + PaymentRequestState* state,
|
| + PaymentRequestDialogView* dialog);
|
| + ~ErrorMessageViewController() override;
|
| +
|
| + private:
|
| + // PaymentRequestSheetController:
|
| + base::string16 GetSecondaryButtonLabel() override;
|
| + bool ShouldShowHeaderBackArrow() override;
|
| + base::string16 GetSheetTitle() override;
|
| + void FillContentView(views::View* content_view) override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ErrorMessageViewController);
|
| +};
|
| +
|
| +} // namespace payments
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_ERROR_MESSAGE_VIEW_CONTROLLER_H_
|
|
|