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

Unified Diff: ios/web/web_state/ui/crw_web_view_navigation_proxy.h

Issue 2957163002: [Navigation Experiment] Add WKBasedNavigationManagerImpl. (Closed)
Patch Set: Patch for landing 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.mm ('k') | ios/web/web_state/web_state_impl.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_view_navigation_proxy.h
diff --git a/ios/web/web_state/ui/crw_web_view_navigation_proxy.h b/ios/web/web_state/ui/crw_web_view_navigation_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d6fb4080a7549f69e945ca75e772a629656ce35
--- /dev/null
+++ b/ios/web/web_state/ui/crw_web_view_navigation_proxy.h
@@ -0,0 +1,26 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_H_
+#define IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_H_
+
+#import <WebKit/WebKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+// A protocol to expose a subset of the WKWebView API to NavigationManager.
+@protocol CRWWebViewNavigationProxy
+
+@property(nonatomic, readonly, strong) WKBackForwardList* backForwardList;
+@property(nonatomic, readonly) BOOL canGoBack;
+@property(nonatomic, readonly) BOOL canGoForward;
+
+- (nullable WKNavigation*)goBack;
+- (nullable WKNavigation*)goForward;
+- (nullable WKNavigation*)goToBackForwardListItem:(WKBackForwardListItem*)item;
+
+@end
+NS_ASSUME_NONNULL_END
+
+#endif // IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_H_
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | ios/web/web_state/web_state_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698