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

Side by Side Diff: chrome/browser/ui/gtk/download/download_item_drag.cc

Issue 220253002: Add net/base/filename_util.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/ui/gtk/download/download_item_drag.h" 5 #include "chrome/browser/ui/gtk/download/download_item_drag.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/download/drag_download_item.h" 9 #include "chrome/browser/download/drag_download_item.h"
10 #include "content/public/browser/download_item.h" 10 #include "content/public/browser/download_item.h"
11 #include "net/base/net_util.h" 11 #include "net/base/filename_util.h"
12 #include "ui/base/dragdrop/gtk_dnd_util.h" 12 #include "ui/base/dragdrop/gtk_dnd_util.h"
13 #include "ui/gfx/image/image.h" 13 #include "ui/gfx/image/image.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 using content::DownloadItem; 16 using content::DownloadItem;
17 17
18 namespace { 18 namespace {
19 19
20 const int kDownloadItemCodeMask = ui::TEXT_URI_LIST | ui::CHROME_NAMED_URL; 20 const int kDownloadItemCodeMask = ui::TEXT_URI_LIST | ui::CHROME_NAMED_URL;
21 const GdkDragAction kDownloadItemDragAction = GDK_ACTION_COPY; 21 const GdkDragAction kDownloadItemDragAction = GDK_ACTION_COPY;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 drag_data_->OnDragDataGet(widget, context, selection_data, target_type, time); 123 drag_data_->OnDragDataGet(widget, context, selection_data, target_type, time);
124 } 124 }
125 125
126 void DragDownloadItem(const content::DownloadItem* download, 126 void DragDownloadItem(const content::DownloadItem* download,
127 gfx::Image* icon, 127 gfx::Image* icon,
128 gfx::NativeView view) { 128 gfx::NativeView view) {
129 // This starts the drag process, the lifetime of this object is tied to the 129 // This starts the drag process, the lifetime of this object is tied to the
130 // system drag. 130 // system drag.
131 new DownloadItemDrag(download, icon); 131 new DownloadItemDrag(download, icon);
132 } 132 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698