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

Unified Diff: chrome/browser/gtk/bookmark_manager_gtk.cc

Issue 1029004: GTK: implement extension bookmark manager drag api.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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/gtk/bookmark_bar_gtk.cc ('k') | chrome/browser/gtk/bookmark_utils_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/bookmark_manager_gtk.cc
===================================================================
--- chrome/browser/gtk/bookmark_manager_gtk.cc (revision 41880)
+++ chrome/browser/gtk/bookmark_manager_gtk.cc (working copy)
@@ -60,12 +60,6 @@
// The destination targets that the right tree view accepts for dragging.
const int kDestTargetList[] = { gtk_dnd_util::CHROME_BOOKMARK_ITEM, -1 };
-// The source targets that the right tree view supports for dragging.
-const int kSourceTargetMask = gtk_dnd_util::CHROME_BOOKMARK_ITEM |
- gtk_dnd_util::TEXT_URI_LIST |
- gtk_dnd_util::TEXT_PLAIN |
- gtk_dnd_util::NETSCAPE_URL;
-
// We only have one manager open at a time.
BookmarkManagerGtk* manager = NULL;
@@ -559,7 +553,7 @@
static_cast<GdkDragAction>(GDK_ACTION_MOVE | GDK_ACTION_COPY |
GDK_ACTION_LINK));
gtk_dnd_util::SetSourceTargetListFromCodeMask(
- right_tree_view_, kSourceTargetMask);
+ right_tree_view_, bookmark_utils::GetCodeMask(false));
// We connect to drag dest signals, but we don't actually enable the widget
// as a drag destination unless it corresponds to the contents of a folder.
@@ -1301,7 +1295,7 @@
static_cast<gint>(event->y))) {
bm->delaying_mousedown_ = false;
GtkTargetList* targets = gtk_dnd_util::GetTargetListFromCodeMask(
- kSourceTargetMask);
+ bookmark_utils::GetCodeMask(false));
gtk_drag_begin(tree_view, targets, GDK_ACTION_MOVE,
1, reinterpret_cast<GdkEvent*>(event));
// The drag adds a ref; let it own the list.
« no previous file with comments | « chrome/browser/gtk/bookmark_bar_gtk.cc ('k') | chrome/browser/gtk/bookmark_utils_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698