OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gtk/custom_drag.h" | 5 #include "chrome/browser/ui/gtk/custom_drag.h" |
6 | 6 |
7 #include "app/gtk_dnd_util.h" | 7 #include "app/gtk_dnd_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/download/download_item.h" | 9 #include "chrome/browser/download/download_item.h" |
10 #include "chrome/browser/gtk/bookmark_utils_gtk.h" | 10 #include "chrome/browser/ui/gtk/bookmark_utils_gtk.h" |
11 #include "gfx/gtk_util.h" | 11 #include "gfx/gtk_util.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 #include "net/base/net_util.h" | 13 #include "net/base/net_util.h" |
14 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 const int kDownloadItemCodeMask = gtk_dnd_util::TEXT_URI_LIST | | 18 const int kDownloadItemCodeMask = gtk_dnd_util::TEXT_URI_LIST | |
19 gtk_dnd_util::CHROME_NAMED_URL; | 19 gtk_dnd_util::CHROME_NAMED_URL; |
20 const GdkDragAction kDownloadItemDragAction = GDK_ACTION_COPY; | 20 const GdkDragAction kDownloadItemDragAction = GDK_ACTION_COPY; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 guint target_type, guint time) { | 140 guint target_type, guint time) { |
141 bookmark_utils::WriteBookmarksToSelection(nodes_, selection_data, | 141 bookmark_utils::WriteBookmarksToSelection(nodes_, selection_data, |
142 target_type, profile_); | 142 target_type, profile_); |
143 } | 143 } |
144 | 144 |
145 // static | 145 // static |
146 void BookmarkDrag::BeginDrag(Profile* profile, | 146 void BookmarkDrag::BeginDrag(Profile* profile, |
147 const std::vector<const BookmarkNode*>& nodes) { | 147 const std::vector<const BookmarkNode*>& nodes) { |
148 new BookmarkDrag(profile, nodes); | 148 new BookmarkDrag(profile, nodes); |
149 } | 149 } |
OLD | NEW |