| 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_TEST_WEB_STATE_OBSERVER_H_ | 5 #ifndef IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_OBSERVER_H_ |
| 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_OBSERVER_H_ | 6 #define IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ios/web/public/test/fakes/test_web_state_observer_util.h" | 8 #include "ios/web/public/test/fakes/test_web_state_observer_util.h" |
| 9 #include "ios/web/public/web_state/web_state_observer.h" | 9 #include "ios/web/public/web_state/web_state_observer.h" |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 // Arguments passed to |TitleWasSet|. | 54 // Arguments passed to |TitleWasSet|. |
| 55 web::TestTitleWasSetInfo* title_was_set_info() { | 55 web::TestTitleWasSetInfo* title_was_set_info() { |
| 56 return title_was_set_info_.get(); | 56 return title_was_set_info_.get(); |
| 57 } | 57 } |
| 58 // Arguments passed to |DidChangeVisibleSecurityState|. | 58 // Arguments passed to |DidChangeVisibleSecurityState|. |
| 59 web::TestDidChangeVisibleSecurityStateInfo* | 59 web::TestDidChangeVisibleSecurityStateInfo* |
| 60 did_change_visible_security_state_info() { | 60 did_change_visible_security_state_info() { |
| 61 return did_change_visible_security_state_info_.get(); | 61 return did_change_visible_security_state_info_.get(); |
| 62 } | 62 } |
| 63 // Arguments passed to |DidSuppressDialog|. |
| 64 web::TestDidSuppressDialogInfo* did_suppress_dialog_info() { |
| 65 return did_suppress_dialog_info_.get(); |
| 66 } |
| 63 // Arguments passed to |DocumentSubmitted|. | 67 // Arguments passed to |DocumentSubmitted|. |
| 64 web::TestSubmitDocumentInfo* submit_document_info() { | 68 web::TestSubmitDocumentInfo* submit_document_info() { |
| 65 return submit_document_info_.get(); | 69 return submit_document_info_.get(); |
| 66 } | 70 } |
| 67 // Arguments passed to |FormActivityRegistered|. | 71 // Arguments passed to |FormActivityRegistered|. |
| 68 web::TestFormActivityInfo* form_activity_info() { | 72 web::TestFormActivityInfo* form_activity_info() { |
| 69 return form_activity_info_.get(); | 73 return form_activity_info_.get(); |
| 70 } | 74 } |
| 71 // Arguments passed to |FaviconUrlUpdated|. | 75 // Arguments passed to |FaviconUrlUpdated|. |
| 72 web::TestUpdateFaviconUrlCandidatesInfo* | 76 web::TestUpdateFaviconUrlCandidatesInfo* |
| (...skipping 22 matching lines...) Expand all Loading... |
| 95 void ProvisionalNavigationStarted(const GURL& url) override; | 99 void ProvisionalNavigationStarted(const GURL& url) override; |
| 96 void NavigationItemCommitted(const LoadCommittedDetails&) override; | 100 void NavigationItemCommitted(const LoadCommittedDetails&) override; |
| 97 void PageLoaded(PageLoadCompletionStatus load_completion_status) override; | 101 void PageLoaded(PageLoadCompletionStatus load_completion_status) override; |
| 98 void InterstitialDismissed() override; | 102 void InterstitialDismissed() override; |
| 99 void LoadProgressChanged(double progress) override; | 103 void LoadProgressChanged(double progress) override; |
| 100 void NavigationItemsPruned(size_t pruned_item_count) override; | 104 void NavigationItemsPruned(size_t pruned_item_count) override; |
| 101 void NavigationItemChanged() override; | 105 void NavigationItemChanged() override; |
| 102 void DidFinishNavigation(NavigationContext* context) override; | 106 void DidFinishNavigation(NavigationContext* context) override; |
| 103 void TitleWasSet() override; | 107 void TitleWasSet() override; |
| 104 void DidChangeVisibleSecurityState() override; | 108 void DidChangeVisibleSecurityState() override; |
| 109 void DidSuppressDialog() override; |
| 105 void DocumentSubmitted(const std::string& form_name, | 110 void DocumentSubmitted(const std::string& form_name, |
| 106 bool user_initiated) override; | 111 bool user_initiated) override; |
| 107 void FormActivityRegistered(const std::string& form_name, | 112 void FormActivityRegistered(const std::string& form_name, |
| 108 const std::string& field_name, | 113 const std::string& field_name, |
| 109 const std::string& type, | 114 const std::string& type, |
| 110 const std::string& value, | 115 const std::string& value, |
| 111 bool input_missing) override; | 116 bool input_missing) override; |
| 112 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override; | 117 void FaviconUrlUpdated(const std::vector<FaviconURL>& candidates) override; |
| 113 void RenderProcessGone() override; | 118 void RenderProcessGone() override; |
| 114 void WebStateDestroyed() override; | 119 void WebStateDestroyed() override; |
| 115 void DidStartLoading() override; | 120 void DidStartLoading() override; |
| 116 void DidStopLoading() override; | 121 void DidStopLoading() override; |
| 117 | 122 |
| 118 std::unique_ptr<web::TestStartProvisionalNavigationInfo> | 123 std::unique_ptr<web::TestStartProvisionalNavigationInfo> |
| 119 start_provisional_navigation_info_; | 124 start_provisional_navigation_info_; |
| 120 std::unique_ptr<web::TestCommitNavigationInfo> commit_navigation_info_; | 125 std::unique_ptr<web::TestCommitNavigationInfo> commit_navigation_info_; |
| 121 std::unique_ptr<web::TestLoadPageInfo> load_page_info_; | 126 std::unique_ptr<web::TestLoadPageInfo> load_page_info_; |
| 122 std::unique_ptr<web::TestDismissInterstitialInfo> dismiss_interstitial_info_; | 127 std::unique_ptr<web::TestDismissInterstitialInfo> dismiss_interstitial_info_; |
| 123 std::unique_ptr<web::TestChangeLoadingProgressInfo> | 128 std::unique_ptr<web::TestChangeLoadingProgressInfo> |
| 124 change_loading_progress_info_; | 129 change_loading_progress_info_; |
| 125 std::unique_ptr<web::TestNavigationItemsPrunedInfo> | 130 std::unique_ptr<web::TestNavigationItemsPrunedInfo> |
| 126 navigation_items_pruned_info_; | 131 navigation_items_pruned_info_; |
| 127 std::unique_ptr<web::TestNavigationItemChangedInfo> | 132 std::unique_ptr<web::TestNavigationItemChangedInfo> |
| 128 navigation_item_changed_info_; | 133 navigation_item_changed_info_; |
| 129 std::unique_ptr<web::TestDidFinishNavigationInfo> did_finish_navigation_info_; | 134 std::unique_ptr<web::TestDidFinishNavigationInfo> did_finish_navigation_info_; |
| 130 std::unique_ptr<web::TestTitleWasSetInfo> title_was_set_info_; | 135 std::unique_ptr<web::TestTitleWasSetInfo> title_was_set_info_; |
| 131 std::unique_ptr<web::TestDidChangeVisibleSecurityStateInfo> | 136 std::unique_ptr<web::TestDidChangeVisibleSecurityStateInfo> |
| 132 did_change_visible_security_state_info_; | 137 did_change_visible_security_state_info_; |
| 138 std::unique_ptr<web::TestDidSuppressDialogInfo> did_suppress_dialog_info_; |
| 133 std::unique_ptr<web::TestSubmitDocumentInfo> submit_document_info_; | 139 std::unique_ptr<web::TestSubmitDocumentInfo> submit_document_info_; |
| 134 std::unique_ptr<web::TestFormActivityInfo> form_activity_info_; | 140 std::unique_ptr<web::TestFormActivityInfo> form_activity_info_; |
| 135 std::unique_ptr<web::TestUpdateFaviconUrlCandidatesInfo> | 141 std::unique_ptr<web::TestUpdateFaviconUrlCandidatesInfo> |
| 136 update_favicon_url_candidates_info_; | 142 update_favicon_url_candidates_info_; |
| 137 std::unique_ptr<web::TestRenderProcessGoneInfo> render_process_gone_info_; | 143 std::unique_ptr<web::TestRenderProcessGoneInfo> render_process_gone_info_; |
| 138 std::unique_ptr<web::TestWebStateDestroyedInfo> web_state_destroyed_info_; | 144 std::unique_ptr<web::TestWebStateDestroyedInfo> web_state_destroyed_info_; |
| 139 std::unique_ptr<web::TestStartLoadingInfo> start_loading_info_; | 145 std::unique_ptr<web::TestStartLoadingInfo> start_loading_info_; |
| 140 std::unique_ptr<web::TestStopLoadingInfo> stop_loading_info_; | 146 std::unique_ptr<web::TestStopLoadingInfo> stop_loading_info_; |
| 141 }; | 147 }; |
| 142 | 148 |
| 143 } // namespace web | 149 } // namespace web |
| 144 | 150 |
| 145 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_OBSERVER_H_ | 151 #endif // IOS_WEB_PUBLIC_TEST_FAKES_TEST_WEB_STATE_OBSERVER_H_ |
| OLD | NEW |