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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_drag_drop.cc

Issue 11428161: bookmarks: Break the dependency in ui/cocoa. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix2 Created 8 years 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/cocoa/bookmarks/bookmark_drag_drop.cc
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_drag_drop.cc b/chrome/browser/ui/cocoa/bookmarks/bookmark_drag_drop.cc
deleted file mode 100644
index a133498825d2426bcd69391f0f185251f4889f76..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_drag_drop.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright 2012 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/bookmarks/bookmark_utils.h"
-
-#include "base/logging.h"
-#include "base/message_loop.h"
-#include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h"
-
-namespace bookmark_utils {
-
-void DragBookmarks(Profile* profile,
- const std::vector<const BookmarkNode*>& nodes,
- gfx::NativeView view) {
- DCHECK(!nodes.empty());
-
- // Allow nested message loop so we get DnD events as we drag this around.
- bool was_nested = MessageLoop::current()->IsNested();
- MessageLoop::current()->SetNestableTasksAllowed(true);
- bookmark_pasteboard_helper_mac::StartDrag(profile, nodes, view);
- MessageLoop::current()->SetNestableTasksAllowed(was_nested);
-}
-
-} // namespace bookmark_utils
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_drag_drop.h ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_drag_drop.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698