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

Unified Diff: chrome/browser/ui/gtk/bookmarks/bookmark_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
Index: chrome/browser/ui/gtk/bookmarks/bookmark_drag.cc
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_drag.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_drag.cc
deleted file mode 100644
index 44f806da40d1b5c11cb12fe87376fcae4d5f8ecb..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_drag.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// 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/ui/gtk/bookmarks/bookmark_drag.h"
-
-#include "chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.h"
-
-namespace {
-
-const GdkDragAction kBookmarkDragAction =
- static_cast<GdkDragAction>(GDK_ACTION_COPY | GDK_ACTION_MOVE);
-
-} // namespace
-
-// static
-void BookmarkDrag::BeginDrag(Profile* profile,
- const std::vector<const BookmarkNode*>& nodes) {
- new BookmarkDrag(profile, nodes);
-}
-
-BookmarkDrag::BookmarkDrag(Profile* profile,
- const std::vector<const BookmarkNode*>& nodes)
- : CustomDrag(NULL, GetCodeMask(false), kBookmarkDragAction),
- profile_(profile),
- nodes_(nodes) {}
-
-BookmarkDrag::~BookmarkDrag() {}
-
-void BookmarkDrag::OnDragDataGet(GtkWidget* widget,
- GdkDragContext* context,
- GtkSelectionData* selection_data,
- guint target_type,
- guint time) {
- WriteBookmarksToSelection(nodes_, selection_data, target_type, profile_);
-}
« no previous file with comments | « chrome/browser/ui/gtk/bookmarks/bookmark_drag.h ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_drag_drop_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698