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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_drag_drop_views.h

Issue 12475013: bookmarks: Extract PerformBookmarkDrop() function out of bookmark_utils.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fixes Created 7 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_UI_VIEWS_BOOKMARKS_BOOKMARK_DRAG_DROP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_DRAG_DROP_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_DRAG_DROP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_DRAG_DROP_VIEWS_H_
7 7
8 class BookmarkNode; 8 class BookmarkNode;
9 struct BookmarkNodeData; 9 struct BookmarkNodeData;
10 class Profile; 10 class Profile;
11 11
12 namespace content { 12 namespace content {
13 class BrowserContext; 13 class BrowserContext;
14 } 14 }
15 15
16 namespace ui { 16 namespace ui {
(...skipping 25 matching lines...) Expand all
42 // a drop from the same profile is only allowed if none of the nodes in 42 // a drop from the same profile is only allowed if none of the nodes in
43 // |data| are an ancestor of |drop_parent| and one of the nodes isn't already 43 // |data| are an ancestor of |drop_parent| and one of the nodes isn't already
44 // a child of |drop_parent| at |index|. 44 // a child of |drop_parent| at |index|.
45 bool IsValidBookmarkDropLocation(Profile* profile, 45 bool IsValidBookmarkDropLocation(Profile* profile,
46 const BookmarkNodeData& data, 46 const BookmarkNodeData& data,
47 const BookmarkNode* drop_parent, 47 const BookmarkNode* drop_parent,
48 int index); 48 int index);
49 49
50 } // namespace chrome 50 } // namespace chrome
51 51
52 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_DRAG_DROP_H_ 52 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_DRAG_DROP_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_drag_drop.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_drag_drop_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698