| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_TREE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_TREE_MODEL_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_TREE_MODEL_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_TREE_MODEL_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/bookmarks/bookmark_model.h" | 8 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 9 #include "chrome/views/tree_node_model.h" | 9 #include "chrome/views/tree_node_model.h" |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 int new_index); | 57 int new_index); |
| 58 virtual void BookmarkNodeAdded(BookmarkModel* model, | 58 virtual void BookmarkNodeAdded(BookmarkModel* model, |
| 59 BookmarkNode* parent, | 59 BookmarkNode* parent, |
| 60 int index); | 60 int index); |
| 61 virtual void BookmarkNodeRemoved(BookmarkModel* model, | 61 virtual void BookmarkNodeRemoved(BookmarkModel* model, |
| 62 BookmarkNode* parent, | 62 BookmarkNode* parent, |
| 63 int index, | 63 int index, |
| 64 BookmarkNode* node); | 64 BookmarkNode* node); |
| 65 virtual void BookmarkNodeChanged(BookmarkModel* model, | 65 virtual void BookmarkNodeChanged(BookmarkModel* model, |
| 66 BookmarkNode* node); | 66 BookmarkNode* node); |
| 67 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, |
| 68 BookmarkNode* node); |
| 67 // Folders don't have favicons, so we ignore this. | 69 // Folders don't have favicons, so we ignore this. |
| 68 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model, | 70 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model, |
| 69 BookmarkNode* node) {} | 71 BookmarkNode* node) {} |
| 70 | 72 |
| 71 // The following are overriden to return custom icons for the recently | 73 // The following are overriden to return custom icons for the recently |
| 72 // bookmarked and search nodes. | 74 // bookmarked and search nodes. |
| 73 virtual void GetIcons(std::vector<SkBitmap>* icons); | 75 virtual void GetIcons(std::vector<SkBitmap>* icons); |
| 74 virtual int GetIconIndex(views::TreeModelNode* node); | 76 virtual int GetIconIndex(views::TreeModelNode* node); |
| 75 | 77 |
| 76 private: | 78 private: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 98 | 100 |
| 99 // The two special nodes. These are owned by the root tree node owned by | 101 // The two special nodes. These are owned by the root tree node owned by |
| 100 // TreeNodeModel. | 102 // TreeNodeModel. |
| 101 FolderNode* recently_bookmarked_node_; | 103 FolderNode* recently_bookmarked_node_; |
| 102 FolderNode* search_node_; | 104 FolderNode* search_node_; |
| 103 | 105 |
| 104 DISALLOW_COPY_AND_ASSIGN(BookmarkFolderTreeModel); | 106 DISALLOW_COPY_AND_ASSIGN(BookmarkFolderTreeModel); |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_TREE_MODEL_H_ | 109 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_FOLDER_TREE_MODEL_H_ |
| OLD | NEW |