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

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

Issue 2592833002: [WebPayments] Start populating the Payment Sheet. (Closed)
Patch Set: Address comments. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_ORDER_SUMMARY_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_ORDER_SUMMARY_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_ORDER_SUMMARY_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_ORDER_SUMMARY_VIEW_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h" 9 #include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h"
10 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/vector_icon_button_delegate.h"
11 11
12 namespace payments { 12 namespace payments {
13 13
14 class PaymentRequestImpl; 14 class PaymentRequestImpl;
15 class PaymentRequestDialog; 15 class PaymentRequestDialog;
16 16
17 // The PaymentRequestSheetController subtype for the Order Summary screen of the 17 // The PaymentRequestSheetController subtype for the Order Summary screen of the
18 // Payment Request flow. 18 // Payment Request flow.
19 class OrderSummaryViewController : public PaymentRequestSheetController, 19 class OrderSummaryViewController : public PaymentRequestSheetController,
20 public views::ButtonListener { 20 public views::VectorIconButtonDelegate {
21 public: 21 public:
22 // Does not take ownership of the arguments, which should outlive this object. 22 // Does not take ownership of the arguments, which should outlive this object.
23 OrderSummaryViewController(PaymentRequestImpl* impl, 23 OrderSummaryViewController(PaymentRequestImpl* impl,
24 PaymentRequestDialog* dialog); 24 PaymentRequestDialog* dialog);
25 ~OrderSummaryViewController() override; 25 ~OrderSummaryViewController() override;
26 26
27 // PaymentRequestSheetController: 27 // PaymentRequestSheetController:
28 std::unique_ptr<views::View> CreateView() override; 28 std::unique_ptr<views::View> CreateView() override;
29 29
30 private: 30 private:
31 // views::ButtonListener: 31 // views::VectorIconButtonDelegate:
32 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 32 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
33 33
34 DISALLOW_COPY_AND_ASSIGN(OrderSummaryViewController); 34 DISALLOW_COPY_AND_ASSIGN(OrderSummaryViewController);
35 }; 35 };
36 36
37 } // namespace payments 37 } // namespace payments
38 38
39 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_ORDER_SUMMARY_VIEW_CONTROLLER_H_ 39 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_ORDER_SUMMARY_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698