| 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 23 matching lines...) Expand all Loading... |
| 34 // PaymentRequestState::Observer: | 34 // PaymentRequestState::Observer: |
| 35 void OnSelectedInformationChanged() override; | 35 void OnSelectedInformationChanged() override; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 // PaymentRequestSheetController: | 38 // PaymentRequestSheetController: |
| 39 std::unique_ptr<views::Button> CreatePrimaryButton() override; | 39 std::unique_ptr<views::Button> CreatePrimaryButton() override; |
| 40 std::unique_ptr<views::View> CreateExtraFooterView() override; | 40 std::unique_ptr<views::View> CreateExtraFooterView() override; |
| 41 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 41 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 42 | 42 |
| 43 void UpdatePayButtonState(bool enabled); | 43 void UpdatePayButtonState(bool enabled); |
| 44 void UpdateContentView(); |
| 44 | 45 |
| 45 std::unique_ptr<views::View> CreateShippingSectionContent(); | 46 std::unique_ptr<views::View> CreateShippingSectionContent(); |
| 46 std::unique_ptr<views::Button> CreateShippingRow(); | 47 std::unique_ptr<views::Button> CreateShippingRow(); |
| 47 std::unique_ptr<views::Button> CreatePaymentSheetSummaryRow(); | 48 std::unique_ptr<views::Button> CreatePaymentSheetSummaryRow(); |
| 48 std::unique_ptr<views::Button> CreatePaymentMethodRow(); | 49 std::unique_ptr<views::Button> CreatePaymentMethodRow(); |
| 49 std::unique_ptr<views::View> CreateContactInfoSectionContent(); | 50 std::unique_ptr<views::View> CreateContactInfoSectionContent(); |
| 50 std::unique_ptr<views::Button> CreateContactInfoRow(); | 51 std::unique_ptr<views::Button> CreateContactInfoRow(); |
| 51 std::unique_ptr<views::Button> CreateShippingOptionRow(); | 52 std::unique_ptr<views::Button> CreateShippingOptionRow(); |
| 52 | 53 |
| 54 std::unique_ptr<views::View> container_view_; |
| 53 views::Button* pay_button_; | 55 views::Button* pay_button_; |
| 54 | 56 |
| 55 const int widest_name_column_view_width_; | 57 const int widest_name_column_view_width_; |
| 56 | 58 |
| 57 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); | 59 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 } // namespace payments | 62 } // namespace payments |
| 61 | 63 |
| 62 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ | 64 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ |
| OLD | NEW |