| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // payments::PaymentRequestDialog | 63 // payments::PaymentRequestDialog |
| 64 void ShowDialog() override; | 64 void ShowDialog() override; |
| 65 void CloseDialog() override; | 65 void CloseDialog() override; |
| 66 | 66 |
| 67 void GoBack(); | 67 void GoBack(); |
| 68 void ShowContactProfileSheet(); | 68 void ShowContactProfileSheet(); |
| 69 void ShowOrderSummary(); | 69 void ShowOrderSummary(); |
| 70 void ShowShippingProfileSheet(); | 70 void ShowShippingProfileSheet(); |
| 71 void ShowPaymentMethodSheet(); | 71 void ShowPaymentMethodSheet(); |
| 72 void ShowShippingOptionSheet(); |
| 72 void ShowCreditCardEditor(); | 73 void ShowCreditCardEditor(); |
| 73 | 74 |
| 74 ViewStack* view_stack_for_testing() { return &view_stack_; } | 75 ViewStack* view_stack_for_testing() { return &view_stack_; } |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 void ShowInitialPaymentSheet(); | 78 void ShowInitialPaymentSheet(); |
| 78 | 79 |
| 79 // views::View | 80 // views::View |
| 80 gfx::Size GetPreferredSize() const override; | 81 gfx::Size GetPreferredSize() const override; |
| 81 void ViewHierarchyChanged( | 82 void ViewHierarchyChanged( |
| (...skipping 13 matching lines...) Expand all Loading... |
| 95 // Used when the dialog is being closed to avoid re-entrancy into the | 96 // Used when the dialog is being closed to avoid re-entrancy into the |
| 96 // controller_map_. | 97 // controller_map_. |
| 97 bool being_closed_; | 98 bool being_closed_; |
| 98 | 99 |
| 99 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); | 100 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace payments | 103 } // namespace payments |
| 103 | 104 |
| 104 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ | 105 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
| OLD | NEW |