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