Chromium Code Reviews

Side by Side Diff: components/enhanced_bookmarks/enhanced_bookmark_utils.h

Issue 1247033009: Clean up Enhanced Bookmark's data acquiring logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@icon_eb
Patch Set: Add correct files to git commits Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « components/enhanced_bookmarks/BUILD.gn ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ 5 #ifndef COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_
6 #define COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ 6 #define COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 namespace bookmarks { 12 namespace bookmarks {
13 class BookmarkModel; 13 class BookmarkModel;
14 class BookmarkNode; 14 class BookmarkNode;
15 } 15 }
16 16
17 namespace enhanced_bookmarks { 17 namespace enhanced_bookmarks {
18 18
19 // Possible locations where a bookmark can be opened from. 19 // Possible locations where a bookmark can be opened from.
20 // Please sync with the corresponding histograms.xml. 20 // Please sync with the corresponding histograms.xml.
21 // 21 //
22 // A Java counterpart will be generated for this enum. 22 // A Java counterpart will be generated for this enum.
23 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.enhanced_bookmarks 23 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.enhancedbookmarks
24 enum LaunchLocation { 24 enum LaunchLocation {
25 ALL_ITEMS = 0, 25 ALL_ITEMS = 0,
26 UNCATEGORIZED = 1, // Deprecated. 26 UNCATEGORIZED = 1, // Deprecated.
27 FOLDER = 2, 27 FOLDER = 2,
28 FILTER = 3, 28 FILTER = 3,
29 SEARCH = 4, 29 SEARCH = 4,
30 BOOKMARK_EDITOR = 5, 30 BOOKMARK_EDITOR = 5,
31 COUNT = 6, 31 COUNT = 6,
32 }; 32 };
33 33
(...skipping 17 matching lines...)
51 // Returns the root level folder in which this node is directly, or indirectly 51 // Returns the root level folder in which this node is directly, or indirectly
52 // via subfolders, located. 52 // via subfolders, located.
53 const bookmarks::BookmarkNode* RootLevelFolderForNode( 53 const bookmarks::BookmarkNode* RootLevelFolderForNode(
54 const bookmarks::BookmarkNode* node, 54 const bookmarks::BookmarkNode* node,
55 bookmarks::BookmarkModel* model); 55 bookmarks::BookmarkModel* model);
56 56
57 } // namespace enhanced_bookmarks 57 } // namespace enhanced_bookmarks
58 58
59 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ 59 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_
60 60
OLDNEW
« no previous file with comments | « components/enhanced_bookmarks/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine