| OLD | NEW |
| 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_BOOKMARKS_BOOKMARK_DRAG_DROP_H_ | 5 #ifndef CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_DRAG_DROP_H_ |
| 6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_DRAG_DROP_H_ | 6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_DRAG_DROP_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 11 | 11 |
| 12 class BookmarkNode; | 12 class BookmarkNode; |
| 13 struct BookmarkNodeData; |
| 13 class Profile; | 14 class Profile; |
| 14 | 15 |
| 15 namespace chrome { | 16 namespace chrome { |
| 16 | 17 |
| 17 // Stars the process of dragging a folder of bookmarks. | 18 // Stars the process of dragging a folder of bookmarks. |
| 18 void DragBookmarks(Profile* profile, | 19 void DragBookmarks(Profile* profile, |
| 19 const std::vector<const BookmarkNode*>& nodes, | 20 const std::vector<const BookmarkNode*>& nodes, |
| 20 gfx::NativeView view); | 21 gfx::NativeView view); |
| 21 | 22 |
| 23 // Drops the bookmark nodes that are in |data| onto |parent_node| at |index|. |
| 24 // Returns the drop type used. |
| 25 int DropBookmarks(Profile* profile, |
| 26 const BookmarkNodeData& data, |
| 27 const BookmarkNode* parent_node, |
| 28 int index); |
| 29 |
| 22 } // namespace chrome | 30 } // namespace chrome |
| 23 | 31 |
| 24 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_DRAG_DROP_H_ | 32 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_DRAG_DROP_H_ |
| OLD | NEW |