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

Unified Diff: components/bookmarks/core/browser/bookmark_model.h

Issue 265853002: Allow embedder to force visibility of permanent nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase & fix BookmarkModelTest.NodeVisibility Created 6 years, 7 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/core/browser/bookmark_model.h
diff --git a/components/bookmarks/core/browser/bookmark_model.h b/components/bookmarks/core/browser/bookmark_model.h
index 4c4a313940213249c08e94fe657089e00dca64a7..818929f6ac466060e7d902f1fdfe55331d548b60 100644
--- a/components/bookmarks/core/browser/bookmark_model.h
+++ b/components/bookmarks/core/browser/bookmark_model.h
@@ -250,9 +250,14 @@ class BookmarkModel : public BookmarkService {
return expanded_state_tracker_.get();
}
- // Sets the visibility of one of the permanent nodes. This is set by sync.
+ // Sets the visibility of one of the permanent nodes (unless the node must
+ // always be visible, see |BookmarkClient::IsPermanentNodeVisible| for more
+ // details). This is set by sync.
void SetPermanentNodeVisible(BookmarkNode::Type type, bool value);
+ // Returns the permanent node of type |type|.
+ const BookmarkPermanentNode* PermanentNode(BookmarkNode::Type type);
+
// Sets/deletes meta info of |node|.
void SetNodeMetaInfo(const BookmarkNode* node,
const std::string& key,
@@ -372,8 +377,8 @@ class BookmarkModel : public BookmarkService {
// Whether the initial set of data has been loaded.
bool loaded_;
- // The root node. This contains the bookmark bar node and the 'other' node as
- // children.
+ // The root node. This contains the bookmark bar node, the 'other' node and
+ // the mobile node as children.
BookmarkNode root_;
BookmarkPermanentNode* bookmark_bar_node_;
« no previous file with comments | « components/bookmarks/core/browser/bookmark_client.h ('k') | components/bookmarks/core/browser/bookmark_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698