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

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

Issue 23743003: gtk: Fold bookmark_drag.* into bookmark_drag_drop_gtk.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/ui/gtk/download/download_item_drag.h ('k') | chrome/chrome_browser_ui.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 1e5575f0ba462e403955d3b73d8a8bfb898acae6..74ddd42c331ae4ae26f5b34afaba95046ccbfe55 100644
--- a/chrome/browser/ui/gtk/download/download_item_drag.cc
+++ b/chrome/browser/ui/gtk/download/download_item_drag.cc
@@ -109,11 +109,6 @@ void DownloadItemDrag::SetSource(GtkWidget* widget,
DragData::AttachToWidget(drag_data.Pass(), widget, icon);
}
-// static
-void DownloadItemDrag::BeginDrag(const DownloadItem* item, gfx::Image* icon) {
- new DownloadItemDrag(item, icon);
-}
-
DownloadItemDrag::DownloadItemDrag(const DownloadItem* item, gfx::Image* icon)
: CustomDrag(icon, kDownloadItemCodeMask, kDownloadItemDragAction),
drag_data_(new DragData(item)) {}
@@ -131,5 +126,7 @@ void DownloadItemDrag::OnDragDataGet(GtkWidget* widget,
void DragDownloadItem(const content::DownloadItem* download,
gfx::Image* icon,
gfx::NativeView view) {
- DownloadItemDrag::BeginDrag(download, icon);
+ // This starts the drag process, the lifetime of this object is tied to the
+ // system drag.
+ new DownloadItemDrag(download, icon);
}
« no previous file with comments | « chrome/browser/ui/gtk/download/download_item_drag.h ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698