diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 18:56:35 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 18:56:35 +0000 |
commit | 84c88aa65b45234668caa6b4a7205e534a7b8973 (patch) | |
tree | 23d54dea38749e169a832a29a52845faf4ecfadc /app/gtk_dnd_util.h | |
parent | 0f215e0c0e92474342c3003414d1e0f7ee5e8eba (diff) | |
download | chromium_src-84c88aa65b45234668caa6b4a7205e534a7b8973.zip chromium_src-84c88aa65b45234668caa6b4a7205e534a7b8973.tar.gz chromium_src-84c88aa65b45234668caa6b4a7205e534a7b8973.tar.bz2 |
GTK: Make the toolbar star button a drag source.
Also refactor URI list/named url packing code.
BUG=19008
Review URL: http://codereview.chromium.org/175036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25067 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gtk_dnd_util.h')
-rw-r--r-- | app/gtk_dnd_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/gtk_dnd_util.h b/app/gtk_dnd_util.h index 0698d57..7365cec 100644 --- a/app/gtk_dnd_util.h +++ b/app/gtk_dnd_util.h @@ -50,6 +50,12 @@ class GtkDndUtil { // be sorted in preference order and should be terminated with -1. static void SetDestTargetList(GtkWidget* dest, const int* target_codes); + // Write a URL to the selection in the given type. + static void WriteURLWithName(GtkSelectionData* selection_data, + const GURL& url, + const string16& title, + int type); + // Extracts data of type CHROME_NAMED_URL from |selection_data| into // |url| and |title|. Returns true if the url/title were safely extracted // and the url is valid. |