| 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();
|
| }
|
|
|