Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Unified Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2499593003: [ios] Removed back-forward navigation API from CRWWebController. (Closed)
Patch Set: Self review Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698