| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // views::DialogDelegate | 58 // views::DialogDelegate |
| 59 bool Cancel() override; | 59 bool Cancel() override; |
| 60 bool ShouldShowCloseButton() const override; | 60 bool ShouldShowCloseButton() const override; |
| 61 int GetDialogButtons() const override; | 61 int GetDialogButtons() const override; |
| 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 ShowContactInfoSheet(); | 68 void ShowContactProfileSheet(); |
| 69 void ShowOrderSummary(); | 69 void ShowOrderSummary(); |
| 70 void ShowShippingListSheet(); | 70 void ShowShippingProfileSheet(); |
| 71 void ShowPaymentMethodSheet(); | 71 void ShowPaymentMethodSheet(); |
| 72 void ShowCreditCardEditor(); | 72 void ShowCreditCardEditor(); |
| 73 | 73 |
| 74 ViewStack* view_stack_for_testing() { return &view_stack_; } | 74 ViewStack* view_stack_for_testing() { return &view_stack_; } |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 void ShowInitialPaymentSheet(); | 77 void ShowInitialPaymentSheet(); |
| 78 | 78 |
| 79 // views::View | 79 // views::View |
| 80 gfx::Size GetPreferredSize() const override; | 80 gfx::Size GetPreferredSize() const override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 95 // Used when the dialog is being closed to avoid re-entrancy into the | 95 // Used when the dialog is being closed to avoid re-entrancy into the |
| 96 // controller_map_. | 96 // controller_map_. |
| 97 bool being_closed_; | 97 bool being_closed_; |
| 98 | 98 |
| 99 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); | 99 DISALLOW_COPY_AND_ASSIGN(PaymentRequestDialogView); |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace payments | 102 } // namespace payments |
| 103 | 103 |
| 104 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ | 104 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_DIALOG_VIEW_H_ |
| OLD | NEW |