From 4768c65bc656d4352632a6fc718c8eb6d5046c84 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Fri, 28 Aug 2009 21:42:59 +0000 Subject: Adds support for initiating drags from bookmark menus. BUG=none TEST=make sure bookmark menus work on Windows. Review URL: http://codereview.chromium.org/176006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24801 0039d316-1c4b-4281-b951-d872f2087c98 --- app/os_exchange_data_provider_gtk.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/os_exchange_data_provider_gtk.h') diff --git a/app/os_exchange_data_provider_gtk.h b/app/os_exchange_data_provider_gtk.h index dd9c009..5974cde 100644 --- a/app/os_exchange_data_provider_gtk.h +++ b/app/os_exchange_data_provider_gtk.h @@ -44,6 +44,15 @@ class OSExchangeDataProviderGtk : public OSExchangeData::Provider { bool HasDataForAllFormats(int formats, const std::set& custom_formats) const; + // Returns the set of formats available as a GtkTargetList. It is up to the + // caller to free (gtk_target_list_unref) the returned list. + GtkTargetList* GetTargetList() const; + + // Writes the data to |selection|. |format| is any combination of + // OSExchangeData::Formats. + void WriteFormatToSelection(int format, + GtkSelectionData* selection) const; + // Provider methods. virtual void SetString(const std::wstring& data); virtual void SetURL(const GURL& url, const std::wstring& title); @@ -80,7 +89,6 @@ class OSExchangeDataProviderGtk : public OSExchangeData::Provider { // Actual formats that have been set. See comment above |known_formats_| // for details. int formats_; - std::set custom_formats_; // String contents. string16 string_; -- cgit v1.1