Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: chrome/browser/ui/views/payments/error_message_view_controller.h

Issue 2768093006: [Payments] Desktop: Error message in the dialog. (Closed)
Patch Set: Test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/payments/error_message_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698