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

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

Issue 2875153003: Added web::GetCommittedItemWithUniqueID function. (Closed)
Patch Set: Added GetCommittedItemIndexWithUniqueID 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/web/BUILD.gn ('k') | ios/web/navigation/navigation_manager_util.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_UTIL_H_
6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_UTIL_H_
7
8 // This file contains extensions for web::NavigationManager API without making
9 // them part of ios/web/public.
10
11 namespace web {
12
13 class NavigationItem;
14 class NavigationManager;
15
16 // Returns committed navigation item with given |unique_id| or null if item
17 // is not found or it is pending or transient. Item's unique id is retrieved
18 // via GetUniqueID method.
19 NavigationItem* GetCommittedItemWithUniqueID(
20 NavigationManager* navigation_manager,
21 int unique_id);
22
23 // Returns committed navigation item index with given |unique_id| or -1 if item
24 // is not found or it is pending or transient. Item's unique id is retrieved
25 // via GetUniqueID method.
26 int GetCommittedItemIndexWithUniqueID(NavigationManager* navigation_manager,
27 int unique_id);
28
29 } // namespace web
30
31 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_UTIL_H_
OLDNEW
« no previous file with comments | « ios/web/BUILD.gn ('k') | ios/web/navigation/navigation_manager_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698