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 #include "chrome/browser/bookmarks/bookmark_folder_tree_model.h" | 5 #include "chrome/browser/bookmarks/bookmark_folder_tree_model.h" |
6 | 6 |
7 #include "chrome/app/theme/theme_resources.h" | 7 #include "grit/theme_resources.h" |
8 #include "chrome/common/l10n_util.h" | 8 #include "chrome/common/l10n_util.h" |
9 #include "chrome/common/resource_bundle.h" | 9 #include "chrome/common/resource_bundle.h" |
10 | 10 |
11 #include "generated_resources.h" | 11 #include "generated_resources.h" |
12 | 12 |
13 BookmarkFolderTreeModel::BookmarkFolderTreeModel(BookmarkModel* model) | 13 BookmarkFolderTreeModel::BookmarkFolderTreeModel(BookmarkModel* model) |
14 : views::TreeNodeModel<FolderNode>(new FolderNode(NULL)), | 14 : views::TreeNodeModel<FolderNode>(new FolderNode(NULL)), |
15 model_(model), | 15 model_(model), |
16 recently_bookmarked_node_(new FolderNode(NULL)), | 16 recently_bookmarked_node_(new FolderNode(NULL)), |
17 search_node_(new FolderNode(NULL)){ | 17 search_node_(new FolderNode(NULL)){ |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 for (int i = 0, folder_count = 0; i < parent->GetChildCount(); ++i) { | 189 for (int i = 0, folder_count = 0; i < parent->GetChildCount(); ++i) { |
190 BookmarkNode* child = parent->GetChild(i); | 190 BookmarkNode* child = parent->GetChild(i); |
191 if (child == node) | 191 if (child == node) |
192 return folder_count; | 192 return folder_count; |
193 if (child->is_folder()) | 193 if (child->is_folder()) |
194 folder_count++; | 194 folder_count++; |
195 } | 195 } |
196 NOTREACHED(); | 196 NOTREACHED(); |
197 return 0; | 197 return 0; |
198 } | 198 } |
OLD | NEW |