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

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

Issue 2957163002: [Navigation Experiment] Add WKBasedNavigationManagerImpl. (Closed)
Patch Set: Changed WebViewNavigationProxy to a protocol 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
Index: ios/web/web_state/ui/web_view_navigation_proxy.h
diff --git a/ios/web/web_state/ui/web_view_navigation_proxy.h b/ios/web/web_state/ui/web_view_navigation_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..925fbbef557afdee225e1e854d32fa1811978302
--- /dev/null
+++ b/ios/web/web_state/ui/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 WebViewNavigationProxy
Eugene But (OOO till 7-30) 2017/06/29 22:28:02 s/WebViewNavigationProxy/CRWWebViewNavigationProxy
danyao 2017/06/29 23:09:48 Done.
+
+@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_

Powered by Google App Engine
This is Rietveld 408576698