Chromium Code Reviews| 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); |
| }; |