| OLD | NEW |
| 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_PAYMENT_SHEET_VIEW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_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/vector_icon_button_delegate.h" | 10 #include "ui/views/controls/button/vector_icon_button_delegate.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 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::VectorIconButtonDelegate: | 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 std::unique_ptr<views::View> CreateOrderSummarySectionContent(); | 34 std::unique_ptr<views::View> CreateOrderSummarySectionContent(); |
| 35 std::unique_ptr<views::Button> CreatePaymentSheetSummaryRow(); | 35 std::unique_ptr<views::Button> CreatePaymentSheetSummaryRow(); |
| 36 std::unique_ptr<views::Button> CreatePaymentMethodRow(); |
| 37 |
| 38 const int widest_name_column_view_width_; |
| 36 | 39 |
| 37 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); | 40 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); |
| 38 }; | 41 }; |
| 39 | 42 |
| 40 } // namespace payments | 43 } // namespace payments |
| 41 | 44 |
| 42 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ | 45 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ |
| OLD | NEW |