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

Unified Diff: ios/web/web_state/web_state_delegate_stub.mm

Issue 2614023006: [ios] Removed -[CRWWebDelegate openURLWithParams:]. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/web_state/web_state_delegate_stub.h ('k') | ios/web/web_state/web_state_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/web_state_delegate_stub.mm
diff --git a/ios/web/web_state/web_state_delegate_stub.mm b/ios/web/web_state/web_state_delegate_stub.mm
index 000d8426ed95d3f30623270d246ccdafcf005a54..740ad0308f9387240019ca844199f4c34559694f 100644
--- a/ios/web/web_state/web_state_delegate_stub.mm
+++ b/ios/web/web_state/web_state_delegate_stub.mm
@@ -9,6 +9,8 @@
@implementation CRWWebStateDelegateStub {
// Backs up the property with the same name.
+ std::unique_ptr<web::WebState::OpenURLParams> _openURLParams;
+ // Backs up the property with the same name.
std::unique_ptr<web::ContextMenuParams> _contextMenuParams;
// Backs up the property with the same name.
BOOL _javaScriptDialogPresenterRequested;
@@ -17,6 +19,13 @@
@synthesize webState = _webState;
@synthesize changedProgress = _changedProgress;
+- (web::WebState*)webState:(web::WebState*)webState
+ openURLWithParams:(const web::WebState::OpenURLParams&)params {
+ _webState = webState;
+ _openURLParams.reset(new web::WebState::OpenURLParams(params));
+ return webState;
+}
+
- (void)webState:(web::WebState*)webState didChangeProgress:(double)progress {
_webState = webState;
_changedProgress = progress;
@@ -36,6 +45,10 @@
return nil;
}
+- (const web::WebState::OpenURLParams*)openURLParams {
+ return _openURLParams.get();
+}
+
- (web::ContextMenuParams*)contextMenuParams {
return _contextMenuParams.get();
}
« no previous file with comments | « ios/web/web_state/web_state_delegate_stub.h ('k') | ios/web/web_state/web_state_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698