Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: app/os_exchange_data_provider_gtk.h

Issue 270068: Implement dragging icon for dragging bookmarks in views/gtk. Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/gfx/canvas.cc ('k') | app/os_exchange_data_provider_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/os_exchange_data_provider_gtk.h
===================================================================
--- app/os_exchange_data_provider_gtk.h (revision 28576)
+++ app/os_exchange_data_provider_gtk.h (working copy)
@@ -69,6 +69,15 @@
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* get_drag_image() const { return drag_image_; }
sky 2009/10/12 19:41:20 nit: no get, just drag_image, like the other metho
skrul 2009/10/12 19:44:38 Gah, sorry, thanks for paying more attention than
+ 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 @@
// 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);
};
« no previous file with comments | « app/gfx/canvas.cc ('k') | app/os_exchange_data_provider_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698