| 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/views/bookmark_folder_tree_view.h" | 5 #include "chrome/browser/views/bookmark_folder_tree_view.h" |
| 6 | 6 |
| 7 #include <commctrl.h> |
| 8 |
| 7 #include "app/drag_drop_types.h" | 9 #include "app/drag_drop_types.h" |
| 8 #include "app/os_exchange_data.h" | 10 #include "app/os_exchange_data.h" |
| 9 #include "base/base_drag_source.h" | 11 #include "base/base_drag_source.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_utils.h" | 12 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 11 #include "chrome/browser/bookmarks/bookmark_model.h" | 13 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 12 #include "chrome/browser/bookmarks/bookmark_folder_tree_model.h" | 14 #include "chrome/browser/bookmarks/bookmark_folder_tree_model.h" |
| 13 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
| 14 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
| 15 #include "views/view_constants.h" | 17 #include "views/view_constants.h" |
| 16 | 18 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 if (position.on || position.index == position.parent->GetChildCount()) | 296 if (position.on || position.index == position.parent->GetChildCount()) |
| 295 return parent_node->GetChildCount(); | 297 return parent_node->GetChildCount(); |
| 296 | 298 |
| 297 if (position.index != 0) { | 299 if (position.index != 0) { |
| 298 return parent_node->IndexOfChild( | 300 return parent_node->IndexOfChild( |
| 299 TreeNodeAsBookmarkNode(position.parent->GetChild(position.index))); | 301 TreeNodeAsBookmarkNode(position.parent->GetChild(position.index))); |
| 300 } | 302 } |
| 301 | 303 |
| 302 return 0; | 304 return 0; |
| 303 } | 305 } |
| OLD | NEW |