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

Side by Side Diff: ios/web/navigation/web_view_navigation_proxy.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_H_
6 #define IOS_WEB_NAVIGATION_WEB_VIEW_NAVIGATION_PROXY_H_
7
8 @class NSArray;
9 @class WKBackForwardListItem;
10
11 namespace web {
12
13 // Interface to expose navigation related functionality on WKWebView.
14 class WebViewNavigationProxy {
15 public:
16 virtual ~WebViewNavigationProxy() {}
17
18 virtual bool HasWebView() const = 0;
19
20 virtual bool CanGoBack() const = 0;
21 virtual bool CanGoForward() const = 0;
22 virtual void GoBack() const = 0;
23 virtual void GoForward() const = 0;
24 virtual void GoToBackForwardListItem(WKBackForwardListItem* item) const = 0;
25
26 virtual WKBackForwardListItem* GetCurrentItem() const = 0;
27 virtual NSArray<WKBackForwardListItem*>* GetBackList() const = 0;
28 virtual NSArray<WKBackForwardListItem*>* GetForwardList() const = 0;
29 virtual WKBackForwardListItem* GetItemAtOffset(int offset) const = 0;
30 };
31
32 } // namespace web
33
34 #endif // IOS_WEB_NAVIGATION_WEB_VIEW_NAVIGATION_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698