Chromium Code Reviews| 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_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ |
| 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 // Returns the node with |id|, or NULL if there is no node with |id|. | 155 // Returns the node with |id|, or NULL if there is no node with |id|. |
| 156 const BookmarkNode* GetBookmarkNodeByID(const BookmarkModel* model, int64_t id); | 156 const BookmarkNode* GetBookmarkNodeByID(const BookmarkModel* model, int64_t id); |
| 157 | 157 |
| 158 // Returns true if |node| is a descendant of |root|. | 158 // Returns true if |node| is a descendant of |root|. |
| 159 bool IsDescendantOf(const BookmarkNode* node, const BookmarkNode* root); | 159 bool IsDescendantOf(const BookmarkNode* node, const BookmarkNode* root); |
| 160 | 160 |
| 161 // Returns true if any node in |list| is a descendant of |root|. | 161 // Returns true if any node in |list| is a descendant of |root|. |
| 162 bool HasDescendantsOf(const std::vector<const BookmarkNode*>& list, | 162 bool HasDescendantsOf(const std::vector<const BookmarkNode*>& list, |
| 163 const BookmarkNode* root); | 163 const BookmarkNode* root); |
| 164 | 164 |
| 165 // Returns the parent the last node was added to. This never returns NULL | |
|
sky
2016/10/10 21:02:24
Returns the parent to add new nodes to, never retu
kraush
2016/10/10 22:18:05
Will change.
| |
| 166 // (as long as the model is loaded). | |
| 167 const BookmarkNode* GetParentForNewNodes(BookmarkModel* model); | |
| 168 | |
| 165 } // namespace bookmarks | 169 } // namespace bookmarks |
| 166 | 170 |
| 167 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ | 171 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ |
| OLD | NEW |