diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 00:45:35 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 00:45:35 +0000 |
commit | 903e7a8a5f8948b96c46f16c4920648c29a5af12 (patch) | |
tree | d34d420a39ce4e3e8048ec5503d9c255617ca357 /chrome/browser/gtk/bookmark_utils_gtk.h | |
parent | f05798163ceb52a2694e59c1a7f40ace72fb2024 (diff) | |
download | chromium_src-903e7a8a5f8948b96c46f16c4920648c29a5af12.zip chromium_src-903e7a8a5f8948b96c46f16c4920648c29a5af12.tar.gz chromium_src-903e7a8a5f8948b96c46f16c4920648c29a5af12.tar.bz2 |
Gtk: DnD extravaganza
- Correctly update drag status for drags over renderer. This makes things look quite a bit better.
- Rework the dnd utils so that we specify the drag targets in the order we prefer them (for destinations)
- Refactor code in bookmark bar so folder and toolbar drags share more code
- Allow bookmark bar to accept URI lists and plain text drags (for plain text we require the text to be a valid url)
BUG=17431
Review URL: http://codereview.chromium.org/159419
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21767 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 d2d0143..865a79e 100644 --- a/chrome/browser/gtk/bookmark_utils_gtk.h +++ b/chrome/browser/gtk/bookmark_utils_gtk.h @@ -83,6 +83,14 @@ bool CreateNewBookmarkFromNamedUrl( const BookmarkNode* parent, int idx); +// Add the URIs in |selection_data| into the model at the given position. They +// will be added whether or not the URL is valid. +bool CreateNewBookmarksFromURIList( + GtkSelectionData* selection_data, + BookmarkModel* model, + const BookmarkNode* parent, + int idx); + } // namespace bookmark_utils #endif // CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_ |