This source file includes following definitions.
- ClipboardContainsBookmarks
- WriteToClipboard
- ReadFromClipboard
#include "chrome/browser/bookmarks/bookmark_node_data.h"
#include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h"
bool BookmarkNodeData::ClipboardContainsBookmarks() {
return PasteboardContainsBookmarks(ui::CLIPBOARD_TYPE_COPY_PASTE);
}
void BookmarkNodeData::WriteToClipboard(ui::ClipboardType type) {
WriteBookmarksToPasteboard(type, elements, profile_path_);
}
bool BookmarkNodeData::ReadFromClipboard(ui::ClipboardType type) {
base::FilePath file_path;
if (ReadBookmarksFromPasteboard(type, elements, &file_path)) {
profile_path_ = file_path;
return true;
}
return false;
}