| 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_H_ |
| 6 #define IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_H_ |
| 7 |
| 8 #import <WebKit/WebKit.h> |
| 9 |
| 10 NS_ASSUME_NONNULL_BEGIN |
| 11 |
| 12 // A protocol to expose a subset of the WKWebView API to NavigationManager. |
| 13 @protocol CRWWebViewNavigationProxy |
| 14 |
| 15 @property(nonatomic, readonly, strong) WKBackForwardList* backForwardList; |
| 16 @property(nonatomic, readonly) BOOL canGoBack; |
| 17 @property(nonatomic, readonly) BOOL canGoForward; |
| 18 |
| 19 - (nullable WKNavigation*)goBack; |
| 20 - (nullable WKNavigation*)goForward; |
| 21 - (nullable WKNavigation*)goToBackForwardListItem:(WKBackForwardListItem*)item; |
| 22 |
| 23 @end |
| 24 NS_ASSUME_NONNULL_END |
| 25 |
| 26 #endif // IOS_WEB_WEB_STATE_UI_WEB_VIEW_NAVIGATION_PROXY_H_ |
| OLD | NEW |