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

Side by Side Diff: components/bookmarks/browser/bookmark_pasteboard_helper_mac.h

Issue 422673002: Move BookmarkNodeData into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_PASTEBOARD_HELPER_MAC_H_ 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_PASTEBOARD_HELPER_MAC_H_
6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_PASTEBOARD_HELPER_MAC_H_ 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_PASTEBOARD_HELPER_MAC_H_
7 7
8 #include "components/bookmarks/browser/bookmark_node_data.h" 8 #include "components/bookmarks/browser/bookmark_node_data.h"
9 9
10 #if defined(__OBJC__) 10 #if defined(__OBJC__)
11 @class NSString; 11 @class NSString;
12 #endif // __OBJC__ 12 #endif // __OBJC__
13 13
14 namespace base { 14 namespace base {
15 class FilePath; 15 class FilePath;
16 } 16 }
17 17
18 // This set of functions lets C++ code interact with the cocoa pasteboard and 18 // This set of functions lets C++ code interact with the cocoa pasteboard and
19 // dragging methods. 19 // dragging methods.
20 20
21 // Writes a set of bookmark elements from a profile to the specified pasteboard. 21 // Writes a set of bookmark elements from a profile to the specified pasteboard.
22 void WriteBookmarksToPasteboard( 22 void WriteBookmarksToPasteboard(
23 ui::ClipboardType type, 23 ui::ClipboardType type,
24 const std::vector<BookmarkNodeData::Element>& elements, 24 const std::vector<bookmarks::BookmarkNodeData::Element>& elements,
25 const base::FilePath& profile_path); 25 const base::FilePath& profile_path);
26 26
27 // Reads a set of bookmark elements from the specified pasteboard. 27 // Reads a set of bookmark elements from the specified pasteboard.
28 bool ReadBookmarksFromPasteboard( 28 bool ReadBookmarksFromPasteboard(
29 ui::ClipboardType type, 29 ui::ClipboardType type,
30 std::vector<BookmarkNodeData::Element>& elements, 30 std::vector<bookmarks::BookmarkNodeData::Element>& elements,
31 base::FilePath* profile_path); 31 base::FilePath* profile_path);
32 32
33 // Returns true if the specified pasteboard contains any sort of bookmark 33 // Returns true if the specified pasteboard contains any sort of bookmark
34 // elements. It currently does not consider a plaintext url a valid bookmark. 34 // elements. It currently does not consider a plaintext url a valid bookmark.
35 bool PasteboardContainsBookmarks(ui::ClipboardType type); 35 bool PasteboardContainsBookmarks(ui::ClipboardType type);
36 36
37 #if defined(__OBJC__) 37 #if defined(__OBJC__)
38 // Pasteboard type for dictionary containing bookmark structure consisting 38 // Pasteboard type for dictionary containing bookmark structure consisting
39 // of individual bookmark nodes and/or bookmark folders. 39 // of individual bookmark nodes and/or bookmark folders.
40 extern "C" NSString* const kBookmarkDictionaryListPboardType; 40 extern "C" NSString* const kBookmarkDictionaryListPboardType;
41 #endif // __OBJC__ 41 #endif // __OBJC__
42 42
43 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_PASTEBOARD_HELPER_MAC_H_ 43 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_PASTEBOARD_HELPER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698