| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 void OnSelectedInformationChanged() override; | 33 void OnSelectedInformationChanged() override; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 // PaymentRequestSheetController: | 36 // PaymentRequestSheetController: |
| 37 std::unique_ptr<views::Button> CreatePrimaryButton() override; | 37 std::unique_ptr<views::Button> CreatePrimaryButton() override; |
| 38 std::unique_ptr<views::View> CreateExtraFooterView() override; | 38 std::unique_ptr<views::View> CreateExtraFooterView() override; |
| 39 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 39 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 40 | 40 |
| 41 void UpdatePayButtonState(bool enabled); | 41 void UpdatePayButtonState(bool enabled); |
| 42 | 42 |
| 43 std::unique_ptr<views::View> CreateOrderSummarySectionContent(); | |
| 44 std::unique_ptr<views::View> CreateShippingSectionContent(); | 43 std::unique_ptr<views::View> CreateShippingSectionContent(); |
| 45 std::unique_ptr<views::Button> CreateShippingRow(); | 44 std::unique_ptr<views::Button> CreateShippingRow(); |
| 46 std::unique_ptr<views::Button> CreatePaymentSheetSummaryRow(); | 45 std::unique_ptr<views::Button> CreatePaymentSheetSummaryRow(); |
| 47 std::unique_ptr<views::Button> CreatePaymentMethodRow(); | 46 std::unique_ptr<views::Button> CreatePaymentMethodRow(); |
| 48 std::unique_ptr<views::View> CreateContactInfoSectionContent(); | 47 std::unique_ptr<views::View> CreateContactInfoSectionContent(); |
| 49 std::unique_ptr<views::Button> CreateContactInfoRow(); | 48 std::unique_ptr<views::Button> CreateContactInfoRow(); |
| 50 | 49 |
| 51 views::Button* pay_button_; | 50 views::Button* pay_button_; |
| 52 | 51 |
| 53 const int widest_name_column_view_width_; | 52 const int widest_name_column_view_width_; |
| 54 | 53 |
| 55 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); | 54 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 } // namespace payments | 57 } // namespace payments |
| 59 | 58 |
| 60 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ | 59 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ |
| OLD | NEW |