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

Unified Diff: components/bookmarks/browser/bookmark_client.h

Issue 302313005: Show the Managed Bookmarks folder in the views UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased on model changes Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/bookmarks/browser/bookmark_client.h
diff --git a/components/bookmarks/browser/bookmark_client.h b/components/bookmarks/browser/bookmark_client.h
index 97bb04771919df7d936a6067558c90531bec7010..7b16cda42f4d0f6f36983d34c39a94f79ac5404d 100644
--- a/components/bookmarks/browser/bookmark_client.h
+++ b/components/bookmarks/browser/bookmark_client.h
@@ -82,6 +82,12 @@ class BookmarkClient {
// Checks if the children of |parent| can be reordered or sorted.
virtual bool CanReorderChildren(const BookmarkNode* parent) = 0;
+ // Checks if this node can be edited by the user.
+ virtual bool CanBeEditedByUser(const BookmarkNode* node) = 0;
sky 2014/06/05 23:46:47 Can this and CanReorderChildren be merged? Maybe e
Joao da Silva 2014/06/06 15:41:03 Yep, that's a bit less cruft. Done.
+
+ // Returns true all the nodes in the |list| can be edited by the user.
sky 2014/06/05 23:46:47 all -> if all Also, move this to bookmark_utils a
Joao da Silva 2014/06/06 15:41:03 Done.
+ bool AllCanBeEditedByUser(const std::vector<const BookmarkNode*>& list);
+
protected:
virtual ~BookmarkClient() {}
};

Powered by Google App Engine
This is Rietveld 408576698