| OLD | NEW |
| 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 static const char kLaunchLocationUMA[] = "Stars.LaunchLocation"; | 19 static const char kLaunchLocationUMA[] = "Stars.LaunchLocation"; |
| 20 | 20 |
| 21 // Possible locations where a bookmark can be opened from. | 21 // Possible locations where a bookmark can be opened from. |
| 22 // Please sync with the corresponding histograms.xml. | 22 // Please sync with the corresponding histograms.xml. |
| 23 // | 23 // |
| 24 // A Java counterpart will be generated for this enum. | 24 // A Java counterpart will be generated for this enum. |
| 25 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.enhancedbookmark | 25 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.enhanced_bookmarks |
| 26 enum LaunchLocation { | 26 enum LaunchLocation { |
| 27 ALL_ITEMS = 0, | 27 ALL_ITEMS = 0, |
| 28 UNCATEGORIZED = 1, // Deprecated. | 28 UNCATEGORIZED = 1, // Deprecated. |
| 29 FOLDER = 2, | 29 FOLDER = 2, |
| 30 FILTER = 3, | 30 FILTER = 3, |
| 31 SEARCH = 4, | 31 SEARCH = 4, |
| 32 BOOKMARK_EDITOR = 5, | 32 BOOKMARK_EDITOR = 5, |
| 33 COUNT = 6, | 33 COUNT = 6, |
| 34 }; | 34 }; |
| 35 | 35 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 57 // Returns the root level folder in which this node is directly, or indirectly | 57 // Returns the root level folder in which this node is directly, or indirectly |
| 58 // via subfolders, located. | 58 // via subfolders, located. |
| 59 const bookmarks::BookmarkNode* RootLevelFolderForNode( | 59 const bookmarks::BookmarkNode* RootLevelFolderForNode( |
| 60 const bookmarks::BookmarkNode* node, | 60 const bookmarks::BookmarkNode* node, |
| 61 bookmarks::BookmarkModel* model); | 61 bookmarks::BookmarkModel* model); |
| 62 | 62 |
| 63 } // namespace enhanced_bookmarks | 63 } // namespace enhanced_bookmarks |
| 64 | 64 |
| 65 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ | 65 #endif // COMPONENTS_ENHANCED_BOOKMARKS_ENHANCED_BOOKMARK_UTILS_H_ |
| 66 | 66 |
| OLD | NEW |