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_CLIENT_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ |
| 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 | 75 |
| 76 // Checks if the |permanent_node| can have its title updated. | 76 // Checks if the |permanent_node| can have its title updated. |
| 77 virtual bool CanSetPermanentNodeTitle(const BookmarkNode* permanent_node) = 0; | 77 virtual bool CanSetPermanentNodeTitle(const BookmarkNode* permanent_node) = 0; |
| 78 | 78 |
| 79 // Checks if |node| should sync. | 79 // Checks if |node| should sync. |
| 80 virtual bool CanSyncNode(const BookmarkNode* node) = 0; | 80 virtual bool CanSyncNode(const BookmarkNode* node) = 0; |
| 81 | 81 |
| 82 // Checks if the children of |parent| can be reordered or sorted. | 82 // Checks if the children of |parent| can be reordered or sorted. |
| 83 virtual bool CanReorderChildren(const BookmarkNode* parent) = 0; | 83 virtual bool CanReorderChildren(const BookmarkNode* parent) = 0; |
| 84 | 84 |
| 85 // Checks if this node can be edited by the user. | |
| 86 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.
| |
| 87 | |
| 88 // 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.
| |
| 89 bool AllCanBeEditedByUser(const std::vector<const BookmarkNode*>& list); | |
| 90 | |
| 85 protected: | 91 protected: |
| 86 virtual ~BookmarkClient() {} | 92 virtual ~BookmarkClient() {} |
| 87 }; | 93 }; |
| 88 | 94 |
| 89 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ | 95 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ |
| OLD | NEW |