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

Unified Diff: chrome/browser/ui/gtk/download/download_item_drag.cc

Issue 23522023: Move DrawDownloadItem() implementation to download_item_drag.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/drag_download_item_gtk.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
« no previous file with comments | « chrome/browser/download/drag_download_item_gtk.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698