Commit f53194f2 authored by tfarina@chromium.org's avatar tfarina@chromium.org

Move DragDownloadItem() implementation to download_item_drag.cc

BUG=None
TEST=none, no functional change
R=asanka@chromium.org, erg@chromium.org

Review URL: https://codereview.chromium.org/23522023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221783 0039d316-1c4b-4281-b951-d872f2087c98
parent 23998ad7
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/download/drag_download_item.h"
#include "chrome/browser/ui/gtk/download/download_item_drag.h"
void DragDownloadItem(const content::DownloadItem* download,
gfx::Image* icon,
gfx::NativeView view) {
DownloadItemDrag::BeginDrag(download, icon);
}
......@@ -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);
}
......@@ -548,7 +548,6 @@
'browser/download/download_ui_controller.cc',
'browser/download/download_ui_controller.h',
'browser/download/drag_download_item.h',
'browser/download/drag_download_item_gtk.cc',
'browser/download/drag_download_item_views.cc',
'browser/download/save_package_file_picker.cc',
'browser/download/save_package_file_picker.h',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment