Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2252)

Side by Side Diff: ios/web/public/test/fakes/crw_test_web_state_observer.mm

Issue 2710913006: Removed -[CRWWebDelegate webController:titleDidChange:]. (Closed)
Patch Set: iOS9 fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #import "ios/web/public/test/fakes/crw_test_web_state_observer.h" 5 #import "ios/web/public/test/fakes/crw_test_web_state_observer.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 8
9 namespace web { 9 namespace web {
10 TestFormActivityInfo::TestFormActivityInfo() {} 10 TestFormActivityInfo::TestFormActivityInfo() {}
(...skipping 13 matching lines...) Expand all
24 std::unique_ptr<web::TestLoadPageInfo> _loadPageInfo; 24 std::unique_ptr<web::TestLoadPageInfo> _loadPageInfo;
25 // Arguments passed to |webStateDidDismissInterstitial:|. 25 // Arguments passed to |webStateDidDismissInterstitial:|.
26 std::unique_ptr<web::TestDismissInterstitialInfo> _dismissInterstitialInfo; 26 std::unique_ptr<web::TestDismissInterstitialInfo> _dismissInterstitialInfo;
27 // Arguments passed to |webStateDidChangeURLHash:|. 27 // Arguments passed to |webStateDidChangeURLHash:|.
28 std::unique_ptr<web::TestChangeUrlHashInfo> _changeUrlHashInfo; 28 std::unique_ptr<web::TestChangeUrlHashInfo> _changeUrlHashInfo;
29 // Arguments passed to |webStateDidChangeHistoryState:|. 29 // Arguments passed to |webStateDidChangeHistoryState:|.
30 std::unique_ptr<web::TestChangeHistoryStateInfo> _changeHistoryStateInfo; 30 std::unique_ptr<web::TestChangeHistoryStateInfo> _changeHistoryStateInfo;
31 // Arguments passed to |webState:didChangeLoadingProgress:|. 31 // Arguments passed to |webState:didChangeLoadingProgress:|.
32 std::unique_ptr<web::TestChangeLoadingProgressInfo> 32 std::unique_ptr<web::TestChangeLoadingProgressInfo>
33 _changeLoadingProgressInfo; 33 _changeLoadingProgressInfo;
34 // Arguments passed to |webStateDidChangeTitle:|.
35 std::unique_ptr<web::TestTitleWasSetInfo> _titleWasSetInfo;
34 // Arguments passed to 36 // Arguments passed to
35 // |webState:didSubmitDocumentWithFormNamed:userInitiated:|. 37 // |webState:didSubmitDocumentWithFormNamed:userInitiated:|.
36 std::unique_ptr<web::TestSubmitDocumentInfo> _submitDocumentInfo; 38 std::unique_ptr<web::TestSubmitDocumentInfo> _submitDocumentInfo;
37 // Arguments passed to 39 // Arguments passed to
38 // |webState:didRegisterFormActivityWithFormNamed:fieldName:type:value:|. 40 // |webState:didRegisterFormActivityWithFormNamed:fieldName:type:value:|.
39 std::unique_ptr<web::TestFormActivityInfo> _formActivityInfo; 41 std::unique_ptr<web::TestFormActivityInfo> _formActivityInfo;
40 // Arguments passed to |webState:didUpdateFaviconURLCandidates|. 42 // Arguments passed to |webState:didUpdateFaviconURLCandidates|.
41 std::unique_ptr<web::TestUpdateFaviconUrlCandidatesInfo> 43 std::unique_ptr<web::TestUpdateFaviconUrlCandidatesInfo>
42 _updateFaviconUrlCandidatesInfo; 44 _updateFaviconUrlCandidatesInfo;
43 // Arguments passed to |webState:renderProcessGoneForWebState:|. 45 // Arguments passed to |webState:renderProcessGoneForWebState:|.
(...skipping 27 matching lines...) Expand all
71 } 73 }
72 74
73 - (web::TestChangeHistoryStateInfo*)changeHistoryStateInfo { 75 - (web::TestChangeHistoryStateInfo*)changeHistoryStateInfo {
74 return _changeHistoryStateInfo.get(); 76 return _changeHistoryStateInfo.get();
75 } 77 }
76 78
77 - (web::TestChangeLoadingProgressInfo*)changeLoadingProgressInfo { 79 - (web::TestChangeLoadingProgressInfo*)changeLoadingProgressInfo {
78 return _changeLoadingProgressInfo.get(); 80 return _changeLoadingProgressInfo.get();
79 } 81 }
80 82
83 - (web::TestTitleWasSetInfo*)titleWasSetInfo {
84 return _titleWasSetInfo.get();
85 }
86
81 - (web::TestSubmitDocumentInfo*)submitDocumentInfo { 87 - (web::TestSubmitDocumentInfo*)submitDocumentInfo {
82 return _submitDocumentInfo.get(); 88 return _submitDocumentInfo.get();
83 } 89 }
84 90
85 - (web::TestFormActivityInfo*)formActivityInfo { 91 - (web::TestFormActivityInfo*)formActivityInfo {
86 return _formActivityInfo.get(); 92 return _formActivityInfo.get();
87 } 93 }
88 94
89 - (web::TestUpdateFaviconUrlCandidatesInfo*)updateFaviconUrlCandidatesInfo { 95 - (web::TestUpdateFaviconUrlCandidatesInfo*)updateFaviconUrlCandidatesInfo {
90 return _updateFaviconUrlCandidatesInfo.get(); 96 return _updateFaviconUrlCandidatesInfo.get();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 153 }
148 154
149 - (void)webState:(web::WebState*)webState 155 - (void)webState:(web::WebState*)webState
150 didChangeLoadingProgress:(double)progress { 156 didChangeLoadingProgress:(double)progress {
151 _changeLoadingProgressInfo = 157 _changeLoadingProgressInfo =
152 base::MakeUnique<web::TestChangeLoadingProgressInfo>(); 158 base::MakeUnique<web::TestChangeLoadingProgressInfo>();
153 _changeLoadingProgressInfo->web_state = webState; 159 _changeLoadingProgressInfo->web_state = webState;
154 _changeLoadingProgressInfo->progress = progress; 160 _changeLoadingProgressInfo->progress = progress;
155 } 161 }
156 162
163 - (void)webStateDidChangeTitle:(web::WebState*)webState {
164 _titleWasSetInfo = base::MakeUnique<web::TestTitleWasSetInfo>();
165 _titleWasSetInfo->web_state = webState;
166 }
167
157 - (void)webState:(web::WebState*)webState 168 - (void)webState:(web::WebState*)webState
158 didSubmitDocumentWithFormNamed:(const std::string&)formName 169 didSubmitDocumentWithFormNamed:(const std::string&)formName
159 userInitiated:(BOOL)userInitiated { 170 userInitiated:(BOOL)userInitiated {
160 _submitDocumentInfo = base::MakeUnique<web::TestSubmitDocumentInfo>(); 171 _submitDocumentInfo = base::MakeUnique<web::TestSubmitDocumentInfo>();
161 _submitDocumentInfo->web_state = webState; 172 _submitDocumentInfo->web_state = webState;
162 _submitDocumentInfo->form_name = formName; 173 _submitDocumentInfo->form_name = formName;
163 _submitDocumentInfo->user_initiated = userInitiated; 174 _submitDocumentInfo->user_initiated = userInitiated;
164 } 175 }
165 176
166 - (void)webState:(web::WebState*)webState 177 - (void)webState:(web::WebState*)webState
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 _stopLoadingInfo = base::MakeUnique<web::TestStopLoadingInfo>(); 212 _stopLoadingInfo = base::MakeUnique<web::TestStopLoadingInfo>();
202 _stopLoadingInfo->web_state = webState; 213 _stopLoadingInfo->web_state = webState;
203 } 214 }
204 215
205 - (void)webStateDidStartLoading:(web::WebState*)webState { 216 - (void)webStateDidStartLoading:(web::WebState*)webState {
206 _startLoadingInfo = base::MakeUnique<web::TestStartLoadingInfo>(); 217 _startLoadingInfo = base::MakeUnique<web::TestStartLoadingInfo>();
207 _startLoadingInfo->web_state = webState; 218 _startLoadingInfo->web_state = webState;
208 } 219 }
209 220
210 @end 221 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698