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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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