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

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

Issue 2621153002: [WebPayments] Add the Payment Method section in the Payment Sheet (Closed)
Patch Set: Fix BUILD.gn deps. Created 3 years, 11 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/payment_method_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/payment_method_view_controller.h
diff --git a/chrome/browser/ui/views/payments/payment_method_view_controller.h b/chrome/browser/ui/views/payments/payment_method_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..7884e11a89574cd7000dc74af43c15266b86ad38
--- /dev/null
+++ b/chrome/browser/ui/views/payments/payment_method_view_controller.h
@@ -0,0 +1,39 @@
+// 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_PAYMENT_METHOD_VIEW_CONTROLLER_H_
+#define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_METHOD_VIEW_CONTROLLER_H_
+
+#include "base/macros.h"
+#include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h"
+#include "ui/views/controls/button/vector_icon_button_delegate.h"
+
+namespace payments {
+
+class PaymentRequest;
+class PaymentRequestDialog;
+
+// The PaymentRequestSheetController subtype for the Payment Method screen of
+// the Payment Request flow.
+class PaymentMethodViewController : public PaymentRequestSheetController,
+ public views::VectorIconButtonDelegate {
+ public:
+ // Does not take ownership of the arguments, which should outlive this object.
+ PaymentMethodViewController(PaymentRequest* request,
+ PaymentRequestDialog* dialog);
+ ~PaymentMethodViewController() override;
+
+ // PaymentRequestSheetController:
+ std::unique_ptr<views::View> CreateView() override;
+
+ private:
+ // views::VectorIconButtonDelegate:
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override;
+
+ DISALLOW_COPY_AND_ASSIGN(PaymentMethodViewController);
+};
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_METHOD_VIEW_CONTROLLER_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/payments/payment_method_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698