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

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

Issue 317333004: Added BookmarkClient::CanBeEditedByUser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added TODO 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 unified diff | Download patch | Annotate | Revision Log
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_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
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 72 // Returns true if the |permanent_node| can have its title updated.
73 // the bookmark model.
74 virtual bool CanRemovePermanentNodeChildren(const BookmarkNode* node) = 0;
75
76 // 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 // Returns true 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 // Returns true if this node can be edited by the user.
83 virtual bool CanReorderChildren(const BookmarkNode* parent) = 0; 79 // TODO(joaodasilva): the model should check this more aggressively, and
80 // should give the client a means to temporarily disable those checks.
81 // http://crbug.com/49598
82 virtual bool CanBeEditedByUser(const BookmarkNode* node) = 0;
84 83
85 protected: 84 protected:
86 virtual ~BookmarkClient() {} 85 virtual ~BookmarkClient() {}
87 }; 86 };
88 87
89 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_ 88 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc ('k') | components/bookmarks/browser/bookmark_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698