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

Side by Side Diff: components/bookmarks/browser/bookmark_utils.h

Issue 955753002: bookmarks: Remove unnecessary namespace qualifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | components/bookmarks/browser/bookmark_utils.cc » ('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 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const std::vector<const BookmarkNode*>& nodes); 144 const std::vector<const BookmarkNode*>& nodes);
145 145
146 // Returns true if |url| has a bookmark in the |model| that can be edited 146 // Returns true if |url| has a bookmark in the |model| that can be edited
147 // by the user. 147 // by the user.
148 bool IsBookmarkedByUser(BookmarkModel* model, const GURL& url); 148 bool IsBookmarkedByUser(BookmarkModel* model, const GURL& url);
149 149
150 // Returns the node with |id|, or NULL if there is no node with |id|. 150 // Returns the node with |id|, or NULL if there is no node with |id|.
151 const BookmarkNode* GetBookmarkNodeByID(const BookmarkModel* model, int64 id); 151 const BookmarkNode* GetBookmarkNodeByID(const BookmarkModel* model, int64 id);
152 152
153 // Returns true if |node| is a descendant of |root|. 153 // Returns true if |node| is a descendant of |root|.
154 bool IsDescendantOf(const bookmarks::BookmarkNode* node, 154 bool IsDescendantOf(const BookmarkNode* node, const BookmarkNode* root);
155 const bookmarks::BookmarkNode* root);
156 155
157 // Returns true if any node in |list| is a descendant of |root|. 156 // Returns true if any node in |list| is a descendant of |root|.
158 bool HasDescendantsOf(const std::vector<const bookmarks::BookmarkNode*>& list, 157 bool HasDescendantsOf(const std::vector<const BookmarkNode*>& list,
159 const bookmarks::BookmarkNode* root); 158 const BookmarkNode* root);
160 159
161 } // namespace bookmarks 160 } // namespace bookmarks
162 161
163 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_ 162 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | components/bookmarks/browser/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698