OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | |
7 | |
8 #include "ui/gfx/native_widget_types.h" | |
9 | |
10 namespace content { | |
11 class DownloadItem; | |
12 } | |
13 | |
14 namespace gfx { | |
15 class Image; | |
16 } | |
17 | |
18 namespace download_util { | |
19 | |
20 // 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| | |
22 // is only required for Mac OS X, elsewhere it can be NULL. | |
23 void DragDownload(const content::DownloadItem* download, | |
24 gfx::Image* icon, | |
25 gfx::NativeView view); | |
26 | |
27 } // namespace download_util | |
28 | |
29 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UTIL_H_ | |
OLD | NEW |