summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-28 21:16:23 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-28 21:16:23 +0000
commit6008023c05836f4d1b9ce03b6e9d3465e275b756 (patch)
tree80233195c1345f13767ccad78cf2c2ed05ba3da1 /chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h
parentcae707a6cec619b8e6a4e7a61ca8487d1f0dc2ed (diff)
downloadchromium_src-6008023c05836f4d1b9ce03b6e9d3465e275b756.zip
chromium_src-6008023c05836f4d1b9ce03b6e9d3465e275b756.tar.gz
chromium_src-6008023c05836f4d1b9ce03b6e9d3465e275b756.tar.bz2
bookmarks: bookmark_pasteboard_helper_mac.h misc clean ups.
- Move functions into global namespace. - Rename the PasteboardType enum to BookmarkPasteboardType. - Make BookmarkPasteboardType enum follow the content convention. - Inline dragClipboardContainsBookmarks() directly into the call sites. BUG=35966, 289619 TEST=None, no functional changes. R=asvitkine@google.com, sky@chromium.org, asvitkine@chromium.org Review URL: https://codereview.chromium.org/24916003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225862 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h')
-rw-r--r--chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h36
1 files changed, 17 insertions, 19 deletions
diff --git a/chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h b/chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h
index c0dd000..dd68ec0 100644
--- a/chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h
+++ b/chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h
@@ -15,31 +15,29 @@ namespace base {
class FilePath;
}
-// This set of functions lets C++ code interact with the cocoa pasteboard
-// and dragging methods.
-namespace bookmark_pasteboard_helper_mac {
+// This set of functions lets C++ code interact with the cocoa pasteboard and
+// dragging methods.
-enum PasteboardType {
- kCopyPastePasteboard,
- kDragPasteboard
+enum BookmarkPasteboardType {
+ BOOKMARK_PASTEBOARD_TYPE_COPY_PASTE,
+ BOOKMARK_PASTEBOARD_TYPE_DRAG
};
// Writes a set of bookmark elements from a profile to the specified pasteboard.
-void WriteToPasteboard(PasteboardType type,
- const std::vector<BookmarkNodeData::Element>& elements,
- const base::FilePath& profile_path);
+void WriteBookmarksToPasteboard(
+ BookmarkPasteboardType type,
+ const std::vector<BookmarkNodeData::Element>& elements,
+ const base::FilePath& profile_path);
// Reads a set of bookmark elements from the specified pasteboard.
-bool ReadFromPasteboard(PasteboardType type,
- std::vector<BookmarkNodeData::Element>& elements,
- base::FilePath* profile_path);
-
-// Returns true if the specified pasteboard contains any sort of
-// bookmark elements. It currently does not consider a plaintext url a
-// valid bookmark.
-bool PasteboardContainsBookmarks(PasteboardType type);
-
-} // namespace bookmark_pasteboard_helper_mac
+bool ReadBookmarksFromPasteboard(
+ BookmarkPasteboardType type,
+ std::vector<BookmarkNodeData::Element>& elements,
+ base::FilePath* profile_path);
+
+// Returns true if the specified pasteboard contains any sort of bookmark
+// elements. It currently does not consider a plaintext url a valid bookmark.
+bool PasteboardContainsBookmarks(BookmarkPasteboardType type);
#if defined(__OBJC__)
// Pasteboard type for dictionary containing bookmark structure consisting