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 11 matching lines...) Expand all Loading... |
22 public PaymentRequestSpec::Observer, | 22 public PaymentRequestSpec::Observer, |
23 public PaymentRequestState::Observer { | 23 public PaymentRequestState::Observer { |
24 public: | 24 public: |
25 // Does not take ownership of the arguments, which should outlive this object. | 25 // Does not take ownership of the arguments, which should outlive this object. |
26 PaymentSheetViewController(PaymentRequestSpec* spec, | 26 PaymentSheetViewController(PaymentRequestSpec* spec, |
27 PaymentRequestState* state, | 27 PaymentRequestState* state, |
28 PaymentRequestDialogView* dialog); | 28 PaymentRequestDialogView* dialog); |
29 ~PaymentSheetViewController() override; | 29 ~PaymentSheetViewController() override; |
30 | 30 |
31 // PaymentRequestSpec::Observer: | 31 // PaymentRequestSpec::Observer: |
32 void OnInvalidSpecProvided() override {} | |
33 void OnStartUpdating(PaymentRequestSpec::UpdateReason reason) override; | 32 void OnStartUpdating(PaymentRequestSpec::UpdateReason reason) override; |
34 void OnSpecUpdated() override; | 33 void OnSpecUpdated() override; |
35 | 34 |
36 // PaymentRequestState::Observer: | 35 // PaymentRequestState::Observer: |
37 void OnSelectedInformationChanged() override; | 36 void OnSelectedInformationChanged() override; |
38 | 37 |
39 private: | 38 private: |
40 // PaymentRequestSheetController: | 39 // PaymentRequestSheetController: |
41 std::unique_ptr<views::Button> CreatePrimaryButton() override; | 40 std::unique_ptr<views::Button> CreatePrimaryButton() override; |
42 bool ShouldShowHeaderBackArrow() override; | 41 bool ShouldShowHeaderBackArrow() override; |
(...skipping 16 matching lines...) Expand all Loading... |
59 | 58 |
60 const int widest_name_column_view_width_; | 59 const int widest_name_column_view_width_; |
61 PaymentRequestSpec::UpdateReason current_update_reason_; | 60 PaymentRequestSpec::UpdateReason current_update_reason_; |
62 | 61 |
63 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); | 62 DISALLOW_COPY_AND_ASSIGN(PaymentSheetViewController); |
64 }; | 63 }; |
65 | 64 |
66 } // namespace payments | 65 } // namespace payments |
67 | 66 |
68 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ | 67 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_SHEET_VIEW_CONTROLLER_H_ |
OLD | NEW |