| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |