| OLD | NEW |
| (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_ |
| OLD | NEW |