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

Unified Diff: chrome/browser/ui/views/payments/payment_sheet_view_controller.h

Issue 2579513002: [WebPayments] Factor out sheet-specific logic in Controllers. (Closed)
Patch Set: Created 4 years 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
Index: chrome/browser/ui/views/payments/payment_sheet_view_controller.h
diff --git a/chrome/browser/ui/views/payments/payment_sheet_view_controller.h b/chrome/browser/ui/views/payments/payment_sheet_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..8665fd80086c5540d6526762b02ab5ad53bbc095
--- /dev/null
+++ b/chrome/browser/ui/views/payments/payment_sheet_view_controller.h
@@ -0,0 +1,39 @@
+// Copyright 2016 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_PAYMENT_SHEET_VIEW_CONTROLLER_H_
+#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_
+
+#include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h"
+
+#include "ui/views/controls/button/button.h"
+
+namespace views {
+class View;
+}
+
+namespace payments {
+
+// The PaymentRequestSheetController subtype for the Payment Sheet screen of the
+// Payment Request dialog.
+class PaymentSheetViewController : public PaymentRequestSheetController,
+ public views::ButtonListener {
+ public:
+ PaymentSheetViewController(PaymentRequestImpl* impl,
+ PaymentRequestDialog* dialog);
+ ~PaymentSheetViewController() override {}
+
+ static std::unique_ptr<views::View> CreateView(
+ PaymentSheetViewController* controller);
+
+ private:
+ // views::ButtonListener:
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override;
+
+ DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController);
+};
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698