diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-04 04:44:35 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-04 04:44:35 +0000 |
commit | 6e863adaeafffd8fa5f2c6c733c22d9fc0ee17e7 (patch) | |
tree | 4ed828099735d977dd9aff9e5b70a58f3c83ffb7 /chrome/browser/bookmarks/bookmark_folder_tree_model.h | |
parent | 1db308f6dff751da5f7b88258966f8c1ad4c1774 (diff) | |
download | chromium_src-6e863adaeafffd8fa5f2c6c733c22d9fc0ee17e7.zip chromium_src-6e863adaeafffd8fa5f2c6c733c22d9fc0ee17e7.tar.gz chromium_src-6e863adaeafffd8fa5f2c6c733c22d9fc0ee17e7.tar.bz2 |
Adds support for models to provide addition icons to the tree. Updates
the bookmarks folder tree model to return custom icons for search and
recently bookmarked.
BUG=674
TEST=none
Review URL: http://codereview.chromium.org/9047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4556 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_folder_tree_model.h')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_folder_tree_model.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/bookmarks/bookmark_folder_tree_model.h b/chrome/browser/bookmarks/bookmark_folder_tree_model.h index c2f7093..acf49f4 100644 --- a/chrome/browser/bookmarks/bookmark_folder_tree_model.h +++ b/chrome/browser/bookmarks/bookmark_folder_tree_model.h @@ -68,7 +68,12 @@ class BookmarkFolderTreeModel : public views::TreeNodeModel<FolderNode>, virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model, BookmarkNode* node) {} - private: + // The following are overriden to return custom icons for the recently + // bookmarked and search nodes. + virtual void GetIcons(std::vector<SkBitmap>* icons); + virtual int GetIconIndex(views::TreeModelNode* node); + +private: // Invoked from the constructor to create the children of the root node. void AddRootChildren(); |