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

Unified Diff: components/bookmarks/browser/bookmark_pasteboard_helper_mac.h

Issue 1854223002: mac: Fix bookmark drag and drop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp37_dnd
Patch Set: Fix memory leak. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/bookmarks/browser/bookmark_pasteboard_helper_mac.h
diff --git a/components/bookmarks/browser/bookmark_pasteboard_helper_mac.h b/components/bookmarks/browser/bookmark_pasteboard_helper_mac.h
index c0434185356ed9216ea545cadd2494bec4365bed..839fd510b3aa4fe00bd065b0b4a892a6895a0f1c 100644
--- a/components/bookmarks/browser/bookmark_pasteboard_helper_mac.h
+++ b/components/bookmarks/browser/bookmark_pasteboard_helper_mac.h
@@ -8,6 +8,7 @@
#include "components/bookmarks/browser/bookmark_node_data.h"
#if defined(__OBJC__)
+@class NSPasteboardItem;
@class NSString;
#endif // __OBJC__
@@ -20,6 +21,13 @@ namespace bookmarks {
// This set of functions lets C++ code interact with the cocoa pasteboard and
// dragging methods.
+#if defined(__OBJC__)
+// Creates a NSPasteboardItem that contains all the data for the bookmarks.
+NSPasteboardItem* PasteboardItemFromBookmarks(
+ const std::vector<BookmarkNodeData::Element>& elements,
+ const base::FilePath& profile_path);
+#endif // __OBJC__
+
// Writes a set of bookmark elements from a profile to the specified pasteboard.
void WriteBookmarksToPasteboard(
ui::ClipboardType type,

Powered by Google App Engine
This is Rietveld 408576698