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

Side by Side Diff: ios/web/navigation/crw_session_controller.h

Issue 2915303002: Added NavigationManager::GetIndexOfItem(). (Closed)
Patch Set: rebase Created 3 years, 6 months 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/chrome/browser/ui/DEPS ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_NAVIGATION_CRW_SESSION_CONTROLLER_H_ 5 #ifndef IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_
6 #define IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ 6 #define IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // Removes the item at |index| after discarding any noncomitted entries. 140 // Removes the item at |index| after discarding any noncomitted entries.
141 // |index| must not be the index of the last committed item, or a noncomitted 141 // |index| must not be the index of the last committed item, or a noncomitted
142 // item. 142 // item.
143 - (void)removeItemAtIndex:(NSInteger)index; 143 - (void)removeItemAtIndex:(NSInteger)index;
144 144
145 // Determines whether a navigation between |firstEntry| and |secondEntry| is a 145 // Determines whether a navigation between |firstEntry| and |secondEntry| is a
146 // same-document navigation. Entries can be passed in any order. 146 // same-document navigation. Entries can be passed in any order.
147 - (BOOL)isSameDocumentNavigationBetweenItem:(web::NavigationItem*)firstItem 147 - (BOOL)isSameDocumentNavigationBetweenItem:(web::NavigationItem*)firstItem
148 andItem:(web::NavigationItem*)secondItem; 148 andItem:(web::NavigationItem*)secondItem;
149 149
150 // Returns the index of |item| in |items|. 150 // Returns the index of |item| in |items|, or -1 if it is not present.
151 - (NSInteger)indexOfItem:(const web::NavigationItem*)item; 151 - (int)indexOfItem:(const web::NavigationItem*)item;
152 152
153 // Returns the item at |index| in |items|. 153 // Returns the item at |index| in |items|.
154 - (web::NavigationItemImpl*)itemAtIndex:(NSInteger)index; 154 - (web::NavigationItemImpl*)itemAtIndex:(NSInteger)index;
155 155
156 @end 156 @end
157 157
158 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_ 158 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/DEPS ('k') | ios/web/navigation/crw_session_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698