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

Side by Side Diff: ios/web/navigation/web_view_navigation_proxy_impl.h

Issue 2957163002: [Navigation Experiment] Add WKBasedNavigationManagerImpl. (Closed)
Patch Set: 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_NAVIGATION_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
6 #define IOS_WEB_NAVIGATION_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
7
8 #include "ios/web/navigation/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 HasWebView() const override;
22
23 bool CanGoBack() const override;
24 bool CanGoForward() const override;
25 void GoBack() const override;
26 void GoForward() const override;
27 void GoToBackForwardListItem(WKBackForwardListItem* item) const override;
28
29 WKBackForwardListItem* GetCurrentItem() const override;
30 NSArray<WKBackForwardListItem*>* GetBackList() const override;
31 NSArray<WKBackForwardListItem*>* GetForwardList() const override;
32 WKBackForwardListItem* GetItemAtOffset(int offset) const override;
33
34 void SetWebView(WKWebView* web_view);
35
36 private:
37 WKWebView* web_view_;
38 };
39
40 } // namespace web
41
42 #endif // IOS_WEB_NAVIGATION_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698