summaryrefslogtreecommitdiffstats
path: root/app/os_exchange_data_provider_gtk.h
diff options
context:
space:
mode:
authorskrul@google.com <skrul@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 20:01:08 +0000
committerskrul@google.com <skrul@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 20:01:08 +0000
commit6806d48ab1ce1f7dc3104033467581959368c28e (patch)
tree7875e66662af55969be0b3e668525c5a6b336b84 /app/os_exchange_data_provider_gtk.h
parente08d7b463a5c82d253def91b20c8ed1756e8d337 (diff)
downloadchromium_src-6806d48ab1ce1f7dc3104033467581959368c28e.zip
chromium_src-6806d48ab1ce1f7dc3104033467581959368c28e.tar.gz
chromium_src-6806d48ab1ce1f7dc3104033467581959368c28e.tar.bz2
Implement dragging icon for dragging bookmarks in views/gtk.
Review URL: http://codereview.chromium.org/270068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/os_exchange_data_provider_gtk.h')
-rw-r--r--app/os_exchange_data_provider_gtk.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/os_exchange_data_provider_gtk.h b/app/os_exchange_data_provider_gtk.h
index ffbb182..9a56a2d 100644
--- a/app/os_exchange_data_provider_gtk.h
+++ b/app/os_exchange_data_provider_gtk.h
@@ -69,6 +69,15 @@ class OSExchangeDataProviderGtk : public OSExchangeData::Provider {
virtual bool HasFile() const;
virtual bool HasCustomFormat(OSExchangeData::CustomFormat format) const;
+ // Set the image and cursor offset data for this drag. Will
+ // increment the ref count of pixbuf.
+ void SetDragImage(GdkPixbuf* pixbuf,
+ int cursor_offset_x,
+ int cursor_offset_y);
+ GdkPixbuf* drag_image() const { return drag_image_; }
+ int cursor_offset_x() const { return cursor_offset_x_; }
+ int cursor_offset_y() const { return cursor_offset_y_; }
+
private:
typedef std::map<OSExchangeData::CustomFormat, Pickle> PickleData;
@@ -99,6 +108,11 @@ class OSExchangeDataProviderGtk : public OSExchangeData::Provider {
// PICKLED_DATA contents.
PickleData pickle_data_;
+ // Drag image and offset data.
+ GdkPixbuf* drag_image_;
+ int cursor_offset_x_;
+ int cursor_offset_y_;
+
DISALLOW_COPY_AND_ASSIGN(OSExchangeDataProviderGtk);
};