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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 virtual bool IsPermanentNodeVisible(const BookmarkPermanentNode* node) = 0; | 62 virtual bool IsPermanentNodeVisible(const BookmarkPermanentNode* node) = 0; |
63 | 63 |
64 // Wrapper around RecordAction defined in base/metrics/user_metrics.h | 64 // Wrapper around RecordAction defined in base/metrics/user_metrics.h |
65 // that ensure that the action is posted from the correct thread. | 65 // that ensure that the action is posted from the correct thread. |
66 virtual void RecordAction(const base::UserMetricsAction& action) = 0; | 66 virtual void RecordAction(const base::UserMetricsAction& action) = 0; |
67 | 67 |
68 // Returns a task that will be used to load any additional root nodes. This | 68 // Returns a task that will be used to load any additional root nodes. This |
69 // task will be invoked in the Profile's IO task runner. | 69 // task will be invoked in the Profile's IO task runner. |
70 virtual bookmarks::LoadExtraCallback GetLoadExtraNodesCallback() = 0; | 70 virtual bookmarks::LoadExtraCallback GetLoadExtraNodesCallback() = 0; |
71 | 71 |
72 // Checks if the children of the given permanent |node| can be removed from | |
73 // the bookmark model. | |
74 virtual bool CanRemovePermanentNodeChildren(const BookmarkNode* node) = 0; | |
75 | |
76 // Checks if the |permanent_node| can have its title updated. | 72 // Checks if the |permanent_node| can have its title updated. |
77 virtual bool CanSetPermanentNodeTitle(const BookmarkNode* permanent_node) = 0; | 73 virtual bool CanSetPermanentNodeTitle(const BookmarkNode* permanent_node) = 0; |
78 | 74 |
79 // Checks if |node| should sync. | 75 // Checks if |node| should sync. |
80 virtual bool CanSyncNode(const BookmarkNode* node) = 0; | 76 virtual bool CanSyncNode(const BookmarkNode* node) = 0; |
81 | 77 |
82 // Checks if the children of |parent| can be reordered or sorted. | 78 // Checks if this node can be edited by the user. |
sky
2014/06/06 16:29:47
Checks-> Returns true (bonus points if you update
Joao da Silva
2014/06/06 17:46:39
Done.
| |
83 virtual bool CanReorderChildren(const BookmarkNode* parent) = 0; | 79 virtual bool CanBeEditedByUser(const BookmarkNode* node) = 0; |
84 | 80 |
85 protected: | 81 protected: |
86 virtual ~BookmarkClient() {} | 82 virtual ~BookmarkClient() {} |
87 }; | 83 }; |
88 | 84 |
89 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ | 85 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ |
OLD | NEW |