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

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2957163002: [Navigation Experiment] Add WKBasedNavigationManagerImpl. (Closed)
Patch Set: Rename to CRWWebViewNavigationProxy Created 3 years, 6 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/ui/crw_web_controller.h ('k') | ios/web/web_state/ui/crw_web_view_navigation_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_state/ui/crw_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 61ee232486bd3e1dae3e6285d49e8aae9157208e..6fe70328ae0fe4ee17380e0da8104be3f29042bf 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -88,6 +88,7 @@
#import "ios/web/web_state/ui/crw_swipe_recognizer_provider.h"
#import "ios/web/web_state/ui/crw_web_controller.h"
#import "ios/web/web_state/ui/crw_web_controller_container_view.h"
+#import "ios/web/web_state/ui/crw_web_view_navigation_proxy.h"
#import "ios/web/web_state/ui/crw_web_view_proxy_impl.h"
#import "ios/web/web_state/ui/crw_wk_navigation_states.h"
#import "ios/web/web_state/ui/crw_wk_script_message_router.h"
@@ -1425,6 +1426,13 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
return _webViewProxy.get();
}
+- (id<CRWWebViewNavigationProxy>)webViewNavigationProxy {
+ if ([self.webView conformsToProtocol:@protocol(CRWWebViewNavigationProxy)]) {
Eugene But (OOO till 7-30) 2017/06/30 00:59:53 Sorry, should have mentioned in the previous round
danyao 2017/06/30 14:51:43 Done.
+ return static_cast<id<CRWWebViewNavigationProxy>>(self.webView);
+ }
+ return nil;
+}
+
- (UIView*)viewForPrinting {
// Printing is not supported for native controllers.
return _webView;
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.h ('k') | ios/web/web_state/ui/crw_web_view_navigation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698