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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
6 #define IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
7
8 #include "ios/web/web_state/ui/web_view_navigation_proxy.h"
9
10 @class NSarray;
11 @class WKBackForwardListItem;
12 @class WKWebView;
13
14 namespace web {
15
16 class WebViewNavigationProxyImpl : public WebViewNavigationProxy {
17 public:
18 WebViewNavigationProxyImpl(WKWebView* web_view);
19 ~WebViewNavigationProxyImpl() override {}
20
21 bool CanGoBack() const override;
22 bool CanGoForward() const override;
23 void GoBack() const override;
24 void GoForward() const override;
25 void GoToBackForwardListItem(WKBackForwardListItem* item) const override;
26
27 WKBackForwardListItem* GetCurrentItem() const override;
28 NSArray* GetBackList() const override;
29 NSArray* GetForwardList() const override;
30 WKBackForwardListItem* GetItemAtOffset(int offset) const override;
31
32 void SetWebView(WKWebView* web_view);
33
34 private:
35 WKWebView* web_view_;
36 };
37
38 } // namespace web
39
40 #endif // IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698