Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/browser/bookmarks/bookmark_drag_data.cc

Issue 1868: Moves bookmark related classes into bookmarks directory. There are no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_drag_data.h ('k') | chrome/browser/bookmarks/bookmark_drag_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698