summaryrefslogtreecommitdiffstats
path: root/app/os_exchange_data_provider_gtk.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 21:42:59 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-28 21:42:59 +0000
commit4768c65bc656d4352632a6fc718c8eb6d5046c84 (patch)
treec75cffe227847e1e1ab0952d337c3c853692924e /app/os_exchange_data_provider_gtk.h
parent6638b8716b5630233efa54f8e8ea4b4758f01ca4 (diff)
downloadchromium_src-4768c65bc656d4352632a6fc718c8eb6d5046c84.zip
chromium_src-4768c65bc656d4352632a6fc718c8eb6d5046c84.tar.gz
chromium_src-4768c65bc656d4352632a6fc718c8eb6d5046c84.tar.bz2
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
Diffstat (limited to 'app/os_exchange_data_provider_gtk.h')
-rw-r--r--app/os_exchange_data_provider_gtk.h10
1 files changed, 9 insertions, 1 deletions
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<GdkAtom>& 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<GdkAtom> custom_formats_;
// String contents.
string16 string_;