diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 00:17:56 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 00:17:56 +0000 |
commit | cd6966178e34f1b71bdb36bb6f1b4cc39e103297 (patch) | |
tree | 44fb525549c7bee0fb145fccd4179d88a9d22785 /chrome/browser/gtk/bookmark_utils_gtk.h | |
parent | 0195ac6a92a2348df849d367e4ec229af3f168e5 (diff) | |
download | chromium_src-cd6966178e34f1b71bdb36bb6f1b4cc39e103297.zip chromium_src-cd6966178e34f1b71bdb36bb6f1b4cc39e103297.tar.gz chromium_src-cd6966178e34f1b71bdb36bb6f1b4cc39e103297.tar.bz2 |
Allow dragging a link from the web contents to the bookmark bar to get a named bookmark.
Also, change the naming scheme of the DnD targets.
BUG=16791
TEST=select a link in the web page and drag it to the bookmark bar.
Review URL: http://codereview.chromium.org/155661
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_utils_gtk.h')
-rw-r--r-- | chrome/browser/gtk/bookmark_utils_gtk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/gtk/bookmark_utils_gtk.h b/chrome/browser/gtk/bookmark_utils_gtk.h index 9f252c6..d2d0143 100644 --- a/chrome/browser/gtk/bookmark_utils_gtk.h +++ b/chrome/browser/gtk/bookmark_utils_gtk.h @@ -75,6 +75,14 @@ std::vector<const BookmarkNode*> GetNodesFromSelection( gboolean* delete_selection_data, gboolean* dnd_success); +// Unpickle a new bookmark of the CHROME_NAMED_URL drag type, and put it in +// the appropriate location in the model. +bool CreateNewBookmarkFromNamedUrl( + GtkSelectionData* selection_data, + BookmarkModel* model, + const BookmarkNode* parent, + int idx); + } // namespace bookmark_utils #endif // CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_ |