| Index: ios/web_view/shell/shell_view_controller.m
|
| diff --git a/ios/web_view/shell/shell_view_controller.m b/ios/web_view/shell/shell_view_controller.m
|
| index f96b0997f2b6b3559b7067053d4bf90e519b0787..98e1bbb6d53f7bf8042623f2549f90adaca1ae29 100644
|
| --- a/ios/web_view/shell/shell_view_controller.m
|
| +++ b/ios/web_view/shell/shell_view_controller.m
|
| @@ -8,6 +8,7 @@
|
|
|
| #import "ios/web_view/public/cwv.h"
|
| #import "ios/web_view/public/cwv_html_element.h"
|
| +#import "ios/web_view/public/cwv_navigation_action.h"
|
| #import "ios/web_view/public/cwv_navigation_delegate.h"
|
| #import "ios/web_view/public/cwv_ui_delegate.h"
|
| #import "ios/web_view/public/cwv_web_view.h"
|
| @@ -139,6 +140,7 @@ NSString* const kWebViewShellJavaScriptDialogTextFieldAccessibiltyIdentifier =
|
|
|
| self.webView = [CWV webViewWithFrame:[_containerView bounds]];
|
| _webView.navigationDelegate = self;
|
| + _webView.UIDelegate = self;
|
| _translateController = [[TranslateController alloc] init];
|
| _webView.translationDelegate = _translateController;
|
|
|
| @@ -194,6 +196,18 @@ NSString* const kWebViewShellJavaScriptDialogTextFieldAccessibiltyIdentifier =
|
|
|
| #pragma mark CWVUIDelegate methods
|
|
|
| +- (CWVWebView*)webView:(CWVWebView*)webView
|
| + createWebViewWithConfiguration:(CWVWebViewConfiguration*)configuration
|
| + forNavigationAction:(CWVNavigationAction*)action {
|
| + NSLog(@"Create new CWVWebView for %@. User initiated? %@", action.request.URL,
|
| + action.userInitiated ? @"Yes" : @"No");
|
| + return nil;
|
| +}
|
| +
|
| +- (void)webViewDidClose:(CWVWebView*)webView {
|
| + NSLog(@"webViewDidClose");
|
| +}
|
| +
|
| - (void)webView:(CWVWebView*)webView
|
| runContextMenuWithTitle:(NSString*)menuTitle
|
| forHTMLElement:(CWVHTMLElement*)element
|
|
|