diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 17:53:09 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 17:53:09 +0000 |
commit | fafc8a4203d4308251f17fc18a61cfec71a9a27c (patch) | |
tree | dfee81ebce10c148f4dfa13b4621bc8fd40473fb /chrome/browser/bookmarks/bookmark_utils.h | |
parent | 8bc886faa6a178f51bf094efe491ab1da9595d14 (diff) | |
download | chromium_src-fafc8a4203d4308251f17fc18a61cfec71a9a27c.zip chromium_src-fafc8a4203d4308251f17fc18a61cfec71a9a27c.tar.gz chromium_src-fafc8a4203d4308251f17fc18a61cfec71a9a27c.tar.bz2 |
Adds cut/copy/paste support to the bookmark manager tree/table and
context menus.
BUG=4186
TEST=try cut/copy/paste from table/tree in the bookmark manager as
well as context menus in bookmark manager.
Review URL: http://codereview.chromium.org/9481
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_utils.h')
-rw-r--r-- | chrome/browser/bookmarks/bookmark_utils.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/bookmark_utils.h b/chrome/browser/bookmarks/bookmark_utils.h index 281cf8c..3a72fbb 100644 --- a/chrome/browser/bookmarks/bookmark_utils.h +++ b/chrome/browser/bookmarks/bookmark_utils.h @@ -58,6 +58,23 @@ void OpenAll(HWND parent, BookmarkNode* node, WindowOpenDisposition initial_disposition); +// Copies nodes onto the clipboard. If |remove_nodes| is true the nodes are +// removed after copied to the clipboard. The nodes are copied in such a way +// that if pasted again copies are made. +void CopyToClipboard(BookmarkModel* model, + const std::vector<BookmarkNode*>& nodes, + bool remove_nodes); + +// Pastes from the clipboard. The new nodes are added to |parent|, unless +// |parent| is null in which case this does nothing. The nodes are inserted +// at |index|. If |index| is -1 the nodes are added to the end. +void PasteFromClipboard(BookmarkModel* model, + BookmarkNode* parent, + int index); + +// Returns true if the user can copy from the pasteboard. +bool CanPasteFromClipboard(BookmarkNode* node); + } // namespace bookmark_utils #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ |