OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_BOOKMARKS_BOOKMARK_PASTEBOARD_HELPER_MAC_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_PASTEBOARD_HELPER_MAC_H_ |
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_PASTEBOARD_HELPER_MAC_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_PASTEBOARD_HELPER_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "chrome/browser/bookmarks/bookmark_node_data.h" | 10 #include "chrome/browser/bookmarks/bookmark_node_data.h" |
11 #include "gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
12 | 12 |
13 // This set of functions lets C++ code interact with the cocoa pasteboard | 13 // This set of functions lets C++ code interact with the cocoa pasteboard |
14 // and dragging methods. | 14 // and dragging methods. |
15 namespace bookmark_pasteboard_helper_mac { | 15 namespace bookmark_pasteboard_helper_mac { |
16 | 16 |
17 // Writes a set of bookmark elements from a profile to the general pasteboard. | 17 // Writes a set of bookmark elements from a profile to the general pasteboard. |
18 // This should be used for copy/paste functions. | 18 // This should be used for copy/paste functions. |
19 void WriteToClipboard(const std::vector<BookmarkNodeData::Element>& elements, | 19 void WriteToClipboard(const std::vector<BookmarkNodeData::Element>& elements, |
20 FilePath::StringType profile_path); | 20 FilePath::StringType profile_path); |
21 | 21 |
(...skipping 28 matching lines...) Expand all Loading... |
50 } | 50 } |
51 | 51 |
52 #ifdef __OBJC__ | 52 #ifdef __OBJC__ |
53 @class NSString; | 53 @class NSString; |
54 // Pasteboard type for dictionary containing bookmark structure consisting | 54 // Pasteboard type for dictionary containing bookmark structure consisting |
55 // of individual bookmark nodes and/or bookmark folders. | 55 // of individual bookmark nodes and/or bookmark folders. |
56 extern "C" NSString* const kBookmarkDictionaryListPboardType; | 56 extern "C" NSString* const kBookmarkDictionaryListPboardType; |
57 #endif // __OBJC__ | 57 #endif // __OBJC__ |
58 | 58 |
59 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_PASTEBOARD_HELPER_MAC_H_ | 59 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_PASTEBOARD_HELPER_MAC_H_ |
OLD | NEW |