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

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

Issue 2957163002: [Navigation Experiment] Add WKBasedNavigationManagerImpl. (Closed)
Patch Set: Patch for review 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_impl.h
diff --git a/ios/web/web_state/ui/web_view_navigation_proxy_impl.h b/ios/web/web_state/ui/web_view_navigation_proxy_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..33f80221446b187ca9fcec761fe09071fa56b9f5
--- /dev/null
+++ b/ios/web/web_state/ui/web_view_navigation_proxy_impl.h
@@ -0,0 +1,40 @@
+// 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_IMPL_H_
+#define IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
+
+#include "ios/web/web_state/ui/web_view_navigation_proxy.h"
+
+@class NSarray;
+@class WKBackForwardListItem;
+@class WKWebView;
+
+namespace web {
+
+class WebViewNavigationProxyImpl : public WebViewNavigationProxy {
+ public:
+ WebViewNavigationProxyImpl(WKWebView* web_view);
+ ~WebViewNavigationProxyImpl() override {}
+
+ bool CanGoBack() const override;
+ bool CanGoForward() const override;
+ void GoBack() const override;
+ void GoForward() const override;
+ void GoToBackForwardListItem(WKBackForwardListItem* item) const override;
+
+ WKBackForwardListItem* GetCurrentItem() const override;
+ NSArray* GetBackList() const override;
+ NSArray* GetForwardList() const override;
+ WKBackForwardListItem* GetItemAtOffset(int offset) const override;
+
+ void SetWebView(WKWebView* web_view);
+
+ private:
+ WKWebView* web_view_;
+};
+
+} // namespace web
+
+#endif // IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698