Index: chrome/browser/ui/gtk/download/download_item_drag.cc |
diff --git a/chrome/browser/ui/gtk/download/download_item_drag.cc b/chrome/browser/ui/gtk/download/download_item_drag.cc |
index 0128fe658feaccc6f131b13e4225fc3c62f93939..1e5575f0ba462e403955d3b73d8a8bfb898acae6 100644 |
--- a/chrome/browser/ui/gtk/download/download_item_drag.cc |
+++ b/chrome/browser/ui/gtk/download/download_item_drag.cc |
@@ -6,6 +6,7 @@ |
#include "base/files/file_path.h" |
#include "base/strings/utf_string_conversions.h" |
+#include "chrome/browser/download/drag_download_item.h" |
#include "content/public/browser/download_item.h" |
#include "net/base/net_util.h" |
#include "ui/base/dragdrop/gtk_dnd_util.h" |
@@ -126,3 +127,9 @@ void DownloadItemDrag::OnDragDataGet(GtkWidget* widget, |
guint time) { |
drag_data_->OnDragDataGet(widget, context, selection_data, target_type, time); |
} |
+ |
+void DragDownloadItem(const content::DownloadItem* download, |
+ gfx::Image* icon, |
+ gfx::NativeView view) { |
+ DownloadItemDrag::BeginDrag(download, icon); |
+} |