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

Side by Side Diff: chrome/browser/download/drag_download_item.h

Issue 23271005: Move DragDownload() out of download_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drag_download_item Created 7 years, 4 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 (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_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | chrome/browser/download/drag_download_item_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698