| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_BROWSERTEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // PaymentRequestDialogView::ObserverForTest: | 79 // PaymentRequestDialogView::ObserverForTest: |
| 80 void OnDialogOpened() override; | 80 void OnDialogOpened() override; |
| 81 void OnOrderSummaryOpened() override; | 81 void OnOrderSummaryOpened() override; |
| 82 void OnPaymentMethodOpened() override; | 82 void OnPaymentMethodOpened() override; |
| 83 void OnShippingAddressSectionOpened() override; | 83 void OnShippingAddressSectionOpened() override; |
| 84 void OnShippingOptionSectionOpened() override; | 84 void OnShippingOptionSectionOpened() override; |
| 85 void OnCreditCardEditorOpened() override; | 85 void OnCreditCardEditorOpened() override; |
| 86 void OnShippingAddressEditorOpened() override; | 86 void OnShippingAddressEditorOpened() override; |
| 87 void OnBackNavigation() override; | 87 void OnBackNavigation() override; |
| 88 void OnBackToPaymentSheetNavigation() override; |
| 88 void OnContactInfoOpened() override; | 89 void OnContactInfoOpened() override; |
| 89 void OnEditorViewUpdated() override; | 90 void OnEditorViewUpdated() override; |
| 90 void OnErrorMessageShown() override; | 91 void OnErrorMessageShown() override; |
| 91 void OnSpecDoneUpdating() override; | 92 void OnSpecDoneUpdating() override; |
| 92 void OnCvcPromptShown() override; | 93 void OnCvcPromptShown() override; |
| 93 | 94 |
| 94 // views::WidgetObserver | 95 // views::WidgetObserver |
| 95 // Effective way to be warned of all dialog closures. | 96 // Effective way to be warned of all dialog closures. |
| 96 void OnWidgetDestroyed(views::Widget* widget) override; | 97 void OnWidgetDestroyed(views::Widget* widget) override; |
| 97 | 98 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 enum DialogEvent : int { | 191 enum DialogEvent : int { |
| 191 DIALOG_OPENED, | 192 DIALOG_OPENED, |
| 192 DIALOG_CLOSED, | 193 DIALOG_CLOSED, |
| 193 ORDER_SUMMARY_OPENED, | 194 ORDER_SUMMARY_OPENED, |
| 194 PAYMENT_METHOD_OPENED, | 195 PAYMENT_METHOD_OPENED, |
| 195 SHIPPING_ADDRESS_SECTION_OPENED, | 196 SHIPPING_ADDRESS_SECTION_OPENED, |
| 196 SHIPPING_OPTION_SECTION_OPENED, | 197 SHIPPING_OPTION_SECTION_OPENED, |
| 197 CREDIT_CARD_EDITOR_OPENED, | 198 CREDIT_CARD_EDITOR_OPENED, |
| 198 SHIPPING_ADDRESS_EDITOR_OPENED, | 199 SHIPPING_ADDRESS_EDITOR_OPENED, |
| 199 BACK_NAVIGATION, | 200 BACK_NAVIGATION, |
| 201 BACK_TO_PAYMENT_SHEET_NAVIGATION, |
| 200 CONTACT_INFO_OPENED, | 202 CONTACT_INFO_OPENED, |
| 201 EDITOR_VIEW_UPDATED, | 203 EDITOR_VIEW_UPDATED, |
| 202 CAN_MAKE_PAYMENT_CALLED, | 204 CAN_MAKE_PAYMENT_CALLED, |
| 203 ERROR_MESSAGE_SHOWN, | 205 ERROR_MESSAGE_SHOWN, |
| 204 SPEC_DONE_UPDATING, | 206 SPEC_DONE_UPDATING, |
| 205 CVC_PROMPT_SHOWN, | 207 CVC_PROMPT_SHOWN, |
| 206 }; | 208 }; |
| 207 | 209 |
| 208 // DialogEventObserver is used to wait on specific events that may have | 210 // DialogEventObserver is used to wait on specific events that may have |
| 209 // occured before the call to Wait(), or after, in which case a RunLoop is | 211 // occured before the call to Wait(), or after, in which case a RunLoop is |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // Weak, owned by the PaymentRequest object. | 252 // Weak, owned by the PaymentRequest object. |
| 251 TestChromePaymentRequestDelegate* delegate_; | 253 TestChromePaymentRequestDelegate* delegate_; |
| 252 bool incognito_for_testing_; | 254 bool incognito_for_testing_; |
| 253 | 255 |
| 254 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); | 256 DISALLOW_COPY_AND_ASSIGN(PaymentRequestBrowserTestBase); |
| 255 }; | 257 }; |
| 256 | 258 |
| 257 } // namespace payments | 259 } // namespace payments |
| 258 | 260 |
| 259 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ | 261 #endif // CHROME_BROWSER_UI_VIEWS_PAYMENTS_PAYMENT_REQUEST_BROWSERTEST_BASE_H_ |
| OLD | NEW |