OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_ORDER_SUMMARY_VIEW_CONTROLLER_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_ORDER_SUMMARY_VIEW_CONTROLLER_H_ | |
7 | |
8 #include "chrome/browser/ui/views/payments/payment_request_sheet_controller.h" | |
9 | |
10 #include "ui/views/controls/button/button.h" | |
11 | |
12 namespace views { | |
13 class View; | |
14 } | |
15 | |
16 namespace payments { | |
17 | |
18 // The PaymentRequestSheetController subtype for the Order Summary screen of the | |
19 // Payment Request flow. | |
20 class OrderSummaryViewController : public PaymentRequestSheetController, | |
21 public views::ButtonListener { | |
22 public: | |
23 OrderSummaryViewController(PaymentRequestImpl* impl, | |
24 PaymentRequestDialog* dialog); | |
25 ~OrderSummaryViewController() override {} | |
sky
2016/12/15 16:49:44
Don't inline the destructor (I'm surprised you did
anthonyvd
2016/12/15 17:37:41
Done.
| |
26 | |
27 std::unique_ptr<views::View> CreateView() override; | |
sky
2016/12/15 16:49:44
Prefix with where override is from (like you have
anthonyvd
2016/12/15 17:37:41
Done.
| |
28 | |
29 private: | |
30 // views::ButtonListener: | |
31 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(OrderSummaryViewController); | |
34 }; | |
35 | |
36 } // namespace payments | |
37 | |
38 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_ORDER_SUMMARY_VIEW_CONTROLLER_H_ | |
OLD | NEW |