| 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_drag_data.h" |
| 6 |
| 5 #include "base/pickle.h" | 7 #include "base/pickle.h" |
| 6 #include "chrome/browser/bookmark_bar_model.h" | 8 #include "chrome/browser/bookmarks/bookmark_bar_model.h" |
| 7 #include "chrome/browser/bookmark_drag_data.h" | |
| 8 #include "chrome/common/os_exchange_data.h" | 9 #include "chrome/common/os_exchange_data.h" |
| 9 | 10 |
| 10 static CLIPFORMAT clipboard_format = 0; | 11 static CLIPFORMAT clipboard_format = 0; |
| 11 | 12 |
| 12 static void RegisterFormat() { | 13 static void RegisterFormat() { |
| 13 if (clipboard_format == 0) { | 14 if (clipboard_format == 0) { |
| 14 clipboard_format = RegisterClipboardFormat(L"chrome/x-bookmark-entry"); | 15 clipboard_format = RegisterClipboardFormat(L"chrome/x-bookmark-entry"); |
| 15 DCHECK(clipboard_format); | 16 DCHECK(clipboard_format); |
| 16 } | 17 } |
| 17 } | 18 } |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 109 } |
| 109 is_valid = true; | 110 is_valid = true; |
| 110 return true; | 111 return true; |
| 111 } | 112 } |
| 112 | 113 |
| 113 void BookmarkDragData::AddChildren(BookmarkBarNode* node) { | 114 void BookmarkDragData::AddChildren(BookmarkBarNode* node) { |
| 114 for (int i = 0, max = node->GetChildCount(); i < max; ++i) | 115 for (int i = 0, max = node->GetChildCount(); i < max; ++i) |
| 115 children.push_back(BookmarkDragData(node->GetChild(i))); | 116 children.push_back(BookmarkDragData(node->GetChild(i))); |
| 116 } | 117 } |
| 117 | 118 |
| OLD | NEW |