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_DOWNLOAD_DOWNLOAD_UTIL_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_ITEM_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_ITEM_H_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 class DownloadItem; | 11 class DownloadItem; |
12 } | 12 } |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 class Image; | 15 class Image; |
16 } | 16 } |
17 | 17 |
18 namespace download_util { | |
19 | |
20 // Helper function for download views to use when acting as a drag source for a | 18 // Helper function for download views to use when acting as a drag source for a |
21 // DownloadItem. If |icon| is NULL, no image will be accompany the drag. |view| | 19 // DownloadItem. If |icon| is NULL, no image will be accompany the drag. |view| |
22 // is only required for Mac OS X, elsewhere it can be NULL. | 20 // is only required for Mac OS X, elsewhere it can be NULL. |
23 void DragDownload(const content::DownloadItem* download, | 21 void DragDownloadItem(const content::DownloadItem* download, |
24 gfx::Image* icon, | 22 gfx::Image* icon, |
25 gfx::NativeView view); | 23 gfx::NativeView view); |
26 | 24 |
27 } // namespace download_util | 25 #endif // CHROME_BROWSER_DOWNLOAD_DRAG_DOWNLOAD_ITEM_H_ |
28 | |
29 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | |
OLD | NEW |