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() {} |
}; |