| Index: ios/web/web_state/ui/web_view_navigation_proxy_impl.h
|
| diff --git a/ios/web/web_state/ui/web_view_navigation_proxy_impl.h b/ios/web/web_state/ui/web_view_navigation_proxy_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..33f80221446b187ca9fcec761fe09071fa56b9f5
|
| --- /dev/null
|
| +++ b/ios/web/web_state/ui/web_view_navigation_proxy_impl.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
|
| +#define IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
|
| +
|
| +#include "ios/web/web_state/ui/web_view_navigation_proxy.h"
|
| +
|
| +@class NSarray;
|
| +@class WKBackForwardListItem;
|
| +@class WKWebView;
|
| +
|
| +namespace web {
|
| +
|
| +class WebViewNavigationProxyImpl : public WebViewNavigationProxy {
|
| + public:
|
| + WebViewNavigationProxyImpl(WKWebView* web_view);
|
| + ~WebViewNavigationProxyImpl() override {}
|
| +
|
| + bool CanGoBack() const override;
|
| + bool CanGoForward() const override;
|
| + void GoBack() const override;
|
| + void GoForward() const override;
|
| + void GoToBackForwardListItem(WKBackForwardListItem* item) const override;
|
| +
|
| + WKBackForwardListItem* GetCurrentItem() const override;
|
| + NSArray* GetBackList() const override;
|
| + NSArray* GetForwardList() const override;
|
| + WKBackForwardListItem* GetItemAtOffset(int offset) const override;
|
| +
|
| + void SetWebView(WKWebView* web_view);
|
| +
|
| + private:
|
| + WKWebView* web_view_;
|
| +};
|
| +
|
| +} // namespace web
|
| +
|
| +#endif // IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_IMPL_H_
|
|
|