| 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 IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_ |
| 6 #define IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_ | 6 #define IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ios/web/public/favicon_url.h" | 8 #include "ios/web/public/favicon_url.h" |
| 9 #include "ios/web/public/load_committed_details.h" | 9 #include "ios/web/public/load_committed_details.h" |
| 10 #import "ios/web/public/web_state/web_state_observer_bridge.h" | 10 #import "ios/web/public/web_state/web_state_observer_bridge.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 struct TestLoadPageInfo { | 28 struct TestLoadPageInfo { |
| 29 WebState* web_state; | 29 WebState* web_state; |
| 30 BOOL success; | 30 BOOL success; |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 // Arguments passed to |webStateDidDismissInterstitial:|. | 33 // Arguments passed to |webStateDidDismissInterstitial:|. |
| 34 struct TestDismissInterstitialInfo { | 34 struct TestDismissInterstitialInfo { |
| 35 WebState* web_state; | 35 WebState* web_state; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 // Arguments passed to |webStateDidChangeURLHash:|. | |
| 39 struct TestChangeUrlHashInfo { | |
| 40 WebState* web_state; | |
| 41 }; | |
| 42 | |
| 43 // Arguments passed to |webStateDidChangeHistoryState:|. | 38 // Arguments passed to |webStateDidChangeHistoryState:|. |
| 44 struct TestChangeHistoryStateInfo { | 39 struct TestChangeHistoryStateInfo { |
| 45 WebState* web_state; | 40 WebState* web_state; |
| 46 }; | 41 }; |
| 47 | 42 |
| 48 // Arguments passed to |webState:didChangeLoadingProgress:|. | 43 // Arguments passed to |webState:didChangeLoadingProgress:|. |
| 49 struct TestChangeLoadingProgressInfo { | 44 struct TestChangeLoadingProgressInfo { |
| 50 WebState* web_state; | 45 WebState* web_state; |
| 51 double progress; | 46 double progress; |
| 52 }; | 47 }; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 @property(nonatomic, readonly) | 103 @property(nonatomic, readonly) |
| 109 web::TestStartProvisionalNavigationInfo* startProvisionalNavigationInfo; | 104 web::TestStartProvisionalNavigationInfo* startProvisionalNavigationInfo; |
| 110 // Arguments passed to |webState:didCommitNavigationWithDetails:|. | 105 // Arguments passed to |webState:didCommitNavigationWithDetails:|. |
| 111 @property(nonatomic, readonly) | 106 @property(nonatomic, readonly) |
| 112 web::TestCommitNavigationInfo* commitNavigationInfo; | 107 web::TestCommitNavigationInfo* commitNavigationInfo; |
| 113 // Arguments passed to |webState:didLoadPageWithSuccess:|. | 108 // Arguments passed to |webState:didLoadPageWithSuccess:|. |
| 114 @property(nonatomic, readonly) web::TestLoadPageInfo* loadPageInfo; | 109 @property(nonatomic, readonly) web::TestLoadPageInfo* loadPageInfo; |
| 115 // Arguments passed to |webStateDidDismissInterstitial:|. | 110 // Arguments passed to |webStateDidDismissInterstitial:|. |
| 116 @property(nonatomic, readonly) | 111 @property(nonatomic, readonly) |
| 117 web::TestDismissInterstitialInfo* dismissInterstitialInfo; | 112 web::TestDismissInterstitialInfo* dismissInterstitialInfo; |
| 118 // Arguments passed to |webStateDidChangeURLHash:|. | |
| 119 @property(nonatomic, readonly) web::TestChangeUrlHashInfo* changeUrlHashInfo; | |
| 120 // Arguments passed to |webStateDidChangeHistoryState:|. | 113 // Arguments passed to |webStateDidChangeHistoryState:|. |
| 121 @property(nonatomic, readonly) | 114 @property(nonatomic, readonly) |
| 122 web::TestChangeHistoryStateInfo* changeHistoryStateInfo; | 115 web::TestChangeHistoryStateInfo* changeHistoryStateInfo; |
| 123 // Arguments passed to |webState:didChangeLoadingProgress:|. | 116 // Arguments passed to |webState:didChangeLoadingProgress:|. |
| 124 @property(nonatomic, readonly) | 117 @property(nonatomic, readonly) |
| 125 web::TestChangeLoadingProgressInfo* changeLoadingProgressInfo; | 118 web::TestChangeLoadingProgressInfo* changeLoadingProgressInfo; |
| 126 // Arguments passed to |webState:didSubmitDocumentWithFormNamed:userInitiated:|. | 119 // Arguments passed to |webState:didSubmitDocumentWithFormNamed:userInitiated:|. |
| 127 @property(nonatomic, readonly) web::TestSubmitDocumentInfo* submitDocumentInfo; | 120 @property(nonatomic, readonly) web::TestSubmitDocumentInfo* submitDocumentInfo; |
| 128 // Arguments passed to | 121 // Arguments passed to |
| 129 // |webState:didRegisterFormActivityWithFormNamed:fieldName:type:value:|. | 122 // |webState:didRegisterFormActivityWithFormNamed:fieldName:type:value:|. |
| 130 @property(nonatomic, readonly) web::TestFormActivityInfo* formActivityInfo; | 123 @property(nonatomic, readonly) web::TestFormActivityInfo* formActivityInfo; |
| 131 // Arguments passed to |webState:didUpdateFaviconURLCandidates|. | 124 // Arguments passed to |webState:didUpdateFaviconURLCandidates|. |
| 132 @property(nonatomic, readonly) | 125 @property(nonatomic, readonly) |
| 133 web::TestUpdateFaviconUrlCandidatesInfo* updateFaviconUrlCandidatesInfo; | 126 web::TestUpdateFaviconUrlCandidatesInfo* updateFaviconUrlCandidatesInfo; |
| 134 // Arguments passed to |webState:renderProcessGoneForWebState:|. | 127 // Arguments passed to |webState:renderProcessGoneForWebState:|. |
| 135 @property(nonatomic, readonly) | 128 @property(nonatomic, readonly) |
| 136 web::TestRenderProcessGoneInfo* renderProcessGoneInfo; | 129 web::TestRenderProcessGoneInfo* renderProcessGoneInfo; |
| 137 // Arguments passed to |webStateDestroyed:|. | 130 // Arguments passed to |webStateDestroyed:|. |
| 138 @property(nonatomic, readonly) | 131 @property(nonatomic, readonly) |
| 139 web::TestWebStateDestroyedInfo* webStateDestroyedInfo; | 132 web::TestWebStateDestroyedInfo* webStateDestroyedInfo; |
| 140 // Arguments passed to |webStateDidStopLoading:|. | 133 // Arguments passed to |webStateDidStopLoading:|. |
| 141 @property(nonatomic, readonly) web::TestStopLoadingInfo* stopLoadingInfo; | 134 @property(nonatomic, readonly) web::TestStopLoadingInfo* stopLoadingInfo; |
| 142 // Arguments passed to |webStateDidStartLoading:|. | 135 // Arguments passed to |webStateDidStartLoading:|. |
| 143 @property(nonatomic, readonly) web::TestStartLoadingInfo* startLoadingInfo; | 136 @property(nonatomic, readonly) web::TestStartLoadingInfo* startLoadingInfo; |
| 144 | 137 |
| 145 @end | 138 @end |
| 146 | 139 |
| 147 #endif // IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_ | 140 #endif // IOS_WEB_PUBLIC_TEST_FAKES_CRW_TEST_WEB_STATE_OBSERVER_H_ |
| OLD | NEW |