| 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_ERROR_MESSAGE_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_ERROR_MESSAGE_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h" |
| 12 |
| 13 namespace views { |
| 14 class View; |
| 15 } |
| 16 |
| 17 namespace payments { |
| 18 |
| 19 class PaymentRequestSpec; |
| 20 class PaymentRequestState; |
| 21 class PaymentRequestDialogView; |
| 22 |
| 23 // The PaymentRequestSheetController subtype for the Error Message screen of the |
| 24 // Payment Request flow. |
| 25 class ErrorMessageViewController : public PaymentRequestSheetController { |
| 26 public: |
| 27 // Does not take ownership of the arguments, which should outlive this object. |
| 28 ErrorMessageViewController(PaymentRequestSpec* spec, |
| 29 PaymentRequestState* state, |
| 30 PaymentRequestDialogView* dialog); |
| 31 ~ErrorMessageViewController() override; |
| 32 |
| 33 private: |
| 34 // PaymentRequestSheetController: |
| 35 base::string16 GetSecondaryButtonLabel() override; |
| 36 bool ShouldShowHeaderBackArrow() override; |
| 37 base::string16 GetSheetTitle() override; |
| 38 void FillContentView(views::View* content_view) override; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(ErrorMessageViewController); |
| 41 }; |
| 42 |
| 43 } // namespace payments |
| 44 |
| 45 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_ERROR_MESSAGE_VIEW_CONTROLLER_H_ |
| OLD | NEW |