| Index: ios/web/web_state/ui/crw_web_controller.mm
|
| diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
|
| index 7e3f9d70073e15f3f05a195993d34c54202339ca..bbf10276e74fd59475dff1462110eabae63182d7 100644
|
| --- a/ios/web/web_state/ui/crw_web_controller.mm
|
| +++ b/ios/web/web_state/ui/crw_web_controller.mm
|
| @@ -1379,14 +1379,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| return defaultImage;
|
| }
|
|
|
| -- (BOOL)canGoBack {
|
| - return _webStateImpl->GetNavigationManagerImpl().CanGoBack();
|
| -}
|
| -
|
| -- (BOOL)canGoForward {
|
| - return _webStateImpl->GetNavigationManagerImpl().CanGoForward();
|
| -}
|
| -
|
| - (CGPoint)scrollPosition {
|
| CGPoint position = CGPointMake(0.0, 0.0);
|
| if (!self.webScrollView)
|
| @@ -2281,14 +2273,6 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| }
|
| }
|
|
|
| -- (void)goBack {
|
| - [self goDelta:-1];
|
| -}
|
| -
|
| -- (void)goForward {
|
| - [self goDelta:1];
|
| -}
|
| -
|
| - (void)goDelta:(int)delta {
|
| if (delta == 0) {
|
| [self reload];
|
| @@ -3032,13 +3016,13 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
|
|
| - (BOOL)handleWindowHistoryBackMessage:(base::DictionaryValue*)message
|
| context:(NSDictionary*)context {
|
| - [self goBack];
|
| + [self goDelta:-1];
|
| return YES;
|
| }
|
|
|
| - (BOOL)handleWindowHistoryForwardMessage:(base::DictionaryValue*)message
|
| context:(NSDictionary*)context {
|
| - [self goForward];
|
| + [self goDelta:1];
|
| return YES;
|
| }
|
|
|
|
|