| 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_REQUEST_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 ~PaymentRequestDialogView() override; | 61 ~PaymentRequestDialogView() override; |
| 62 | 62 |
| 63 // views::WidgetDelegate | 63 // views::WidgetDelegate |
| 64 ui::ModalType GetModalType() const override; | 64 ui::ModalType GetModalType() const override; |
| 65 | 65 |
| 66 // views::DialogDelegate | 66 // views::DialogDelegate |
| 67 bool Cancel() override; | 67 bool Cancel() override; |
| 68 bool ShouldShowCloseButton() const override; | 68 bool ShouldShowCloseButton() const override; |
| 69 int GetDialogButtons() const override; | 69 int GetDialogButtons() const override; |
| 70 | 70 |
| 71 // payments::PaymentRequestDialog | 71 // PaymentRequestDialog |
| 72 void ShowDialog() override; | 72 void ShowDialog() override; |
| 73 void CloseDialog() override; | 73 void CloseDialog() override; |
| 74 void ShowErrorMessage() override; | 74 void ShowErrorMessage() override; |
| 75 | 75 |
| 76 void Pay(); | 76 void Pay(); |
| 77 void GoBack(); | 77 void GoBack(); |
| 78 void ShowContactProfileSheet(); | 78 void ShowContactProfileSheet(); |
| 79 void ShowOrderSummary(); | 79 void ShowOrderSummary(); |
| 80 void ShowShippingProfileSheet(); | 80 void ShowShippingProfileSheet(); |
| 81 void ShowPaymentMethodSheet(); | 81 void ShowPaymentMethodSheet(); |
| 82 void ShowShippingOptionSheet(); | 82 void ShowShippingOptionSheet(); |
| 83 void ShowCreditCardEditor(); | 83 void ShowCreditCardEditor(); |
| 84 void ShowShippingAddressEditor(); | 84 void ShowShippingAddressEditor(); |
| 85 void EditorViewUpdated(); | 85 void EditorViewUpdated(); |
| 86 | 86 |
| 87 void ShowCvcUnmaskPrompt( |
| 88 const autofill::CreditCard& credit_card, |
| 89 base::WeakPtr<autofill::payments::FullCardRequest::ResultDelegate> |
| 90 result_delegate) override; |
| 91 |
| 87 ViewStack* view_stack_for_testing() { return &view_stack_; } | 92 ViewStack* view_stack_for_testing() { return &view_stack_; } |
| 88 | 93 |
| 89 private: | 94 private: |
| 90 void ShowInitialPaymentSheet(); | 95 void ShowInitialPaymentSheet(); |
| 91 | 96 |
| 92 // views::View | 97 // views::View |
| 93 gfx::Size GetPreferredSize() const override; | 98 gfx::Size GetPreferredSize() const override; |
| 94 void ViewHierarchyChanged( | 99 void ViewHierarchyChanged( |
| 95 const ViewHierarchyChangedDetails& details) override; | 100 const ViewHierarchyChangedDetails& details) override; |
| 96 | 101 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 108 // Used when the dialog is being closed to avoid re-entrancy into the | 113 // Used when the dialog is being closed to avoid re-entrancy into the |
| 109 // controller_map_. | 114 // controller_map_. |
| 110 bool being_closed_; | 115 bool being_closed_; |
| 111 | 116 |
| 112 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); | 117 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); |
| 113 }; | 118 }; |
| 114 | 119 |
| 115 } // namespace payments | 120 } // namespace payments |
| 116 | 121 |
| 117 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ | 122 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
| OLD | NEW |