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

Side by Side Diff: ios/web/public/navigation_manager.h

Issue 2491773005: [ios] Removed canGoBack/canGoForward API from CRWSessionController. (Closed)
Patch Set: Fixed compilation. 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 unified diff | Download patch
« no previous file with comments | « ios/web/navigation/navigation_manager_impl_unittest.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual int GetPendingItemIndex() const = 0; 129 virtual int GetPendingItemIndex() const = 0;
130 130
131 // Removes the item at the specified |index|. If the index is the last 131 // Removes the item at the specified |index|. If the index is the last
132 // committed index or the pending item, this does nothing and returns false. 132 // committed index or the pending item, this does nothing and returns false.
133 // Otherwise this call discards any transient or pending entries. 133 // Otherwise this call discards any transient or pending entries.
134 virtual bool RemoveItemAtIndex(int index) = 0; 134 virtual bool RemoveItemAtIndex(int index) = 0;
135 135
136 // Navigation relative to the current item. 136 // Navigation relative to the current item.
137 virtual bool CanGoBack() const = 0; 137 virtual bool CanGoBack() const = 0;
138 virtual bool CanGoForward() const = 0; 138 virtual bool CanGoForward() const = 0;
139 virtual bool CanGoToOffset(int offset) const = 0;
139 virtual void GoBack() = 0; 140 virtual void GoBack() = 0;
140 virtual void GoForward() = 0; 141 virtual void GoForward() = 0;
141 142
142 // Navigates to the specified absolute index. 143 // Navigates to the specified absolute index.
143 virtual void GoToIndex(int index) = 0; 144 virtual void GoToIndex(int index) = 0;
144 145
145 // Reloads the current entry. If |check_for_repost| is true and the current 146 // Reloads the current entry. If |check_for_repost| is true and the current
146 // entry has POST data the user is prompted to see if they really want to 147 // entry has POST data the user is prompted to see if they really want to
147 // reload the page. In nearly all cases pass in true. If a transient entry 148 // reload the page. In nearly all cases pass in true. If a transient entry
148 // is showing, initiates a new navigation to its URL. 149 // is showing, initiates a new navigation to its URL.
149 virtual void Reload(bool check_for_repost) = 0; 150 virtual void Reload(bool check_for_repost) = 0;
150 }; 151 };
151 152
152 } // namespace web 153 } // namespace web
153 154
154 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 155 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_manager_impl_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698