OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ |
6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ | 6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class BookmarkNode; | 21 class BookmarkNode; |
22 struct BookmarkNodeData; | 22 struct BookmarkNodeData; |
23 } | 23 } |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 class BrowserContext; | 26 class BrowserContext; |
27 class PageNavigator; | 27 class PageNavigator; |
28 class WebContents; | 28 class WebContents; |
29 } | 29 } |
30 | 30 |
| 31 namespace gfx { |
| 32 class ImageSkia; |
| 33 } |
| 34 |
31 namespace ui { | 35 namespace ui { |
32 class DropTargetEvent; | 36 class DropTargetEvent; |
33 } | 37 } |
34 | 38 |
35 namespace chrome { | 39 namespace chrome { |
36 | 40 |
37 // Number of bookmarks we'll open before prompting the user to see if they | 41 // Number of bookmarks we'll open before prompting the user to see if they |
38 // really want to open all. | 42 // really want to open all. |
39 // | 43 // |
40 // NOTE: treat this as a const. It is not const so unit tests can change the | 44 // NOTE: treat this as a const. It is not const so unit tests can change the |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Returns true if the bookmark data can be dropped on |drop_parent| at | 143 // Returns true if the bookmark data can be dropped on |drop_parent| at |
140 // |index|. A drop from a separate profile is always allowed, where as | 144 // |index|. A drop from a separate profile is always allowed, where as |
141 // a drop from the same profile is only allowed if none of the nodes in | 145 // a drop from the same profile is only allowed if none of the nodes in |
142 // |data| are an ancestor of |drop_parent| and one of the nodes isn't already | 146 // |data| are an ancestor of |drop_parent| and one of the nodes isn't already |
143 // a child of |drop_parent| at |index|. | 147 // a child of |drop_parent| at |index|. |
144 bool IsValidBookmarkDropLocation(Profile* profile, | 148 bool IsValidBookmarkDropLocation(Profile* profile, |
145 const bookmarks::BookmarkNodeData& data, | 149 const bookmarks::BookmarkNodeData& data, |
146 const bookmarks::BookmarkNode* drop_parent, | 150 const bookmarks::BookmarkNode* drop_parent, |
147 int index); | 151 int index); |
148 | 152 |
| 153 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) |
| 154 // TODO(estade): If Mac wants to use these, return gfx::Image instead. |
| 155 gfx::ImageSkia GetBookmarkFolderIcon(); |
| 156 gfx::ImageSkia GetBookmarkSupervisedFolderIcon(); |
| 157 gfx::ImageSkia GetBookmarkManagedFolderIcon(); |
| 158 #endif |
| 159 |
149 } // namespace chrome | 160 } // namespace chrome |
150 | 161 |
151 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ | 162 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ |
OLD | NEW |