summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/tab_contents_drag_source.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-23 22:27:32 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-23 22:27:32 +0000
commite83a7f61f212487d7da91206583feff16f8637a0 (patch)
treee0f63c838bb7aa5349168b7028e4b45002731952 /chrome/browser/gtk/tab_contents_drag_source.h
parentc53add011c152049587f9d3f78158b87b93692ad (diff)
downloadchromium_src-e83a7f61f212487d7da91206583feff16f8637a0.zip
chromium_src-e83a7f61f212487d7da91206583feff16f8637a0.tar.gz
chromium_src-e83a7f61f212487d7da91206583feff16f8637a0.tar.bz2
GTK: Support transparent web image drags.
This depends on a webkit side change before it has any effect. This only works on compositing WMs; non-compositing WMs will just not get a transparent image (it actually will appear slightly darkened). BUG=11457 TEST=manul Review URL: http://codereview.chromium.org/1756008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45503 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tab_contents_drag_source.h')
-rw-r--r--chrome/browser/gtk/tab_contents_drag_source.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/gtk/tab_contents_drag_source.h b/chrome/browser/gtk/tab_contents_drag_source.h
index fbfaeee..f43629f 100644
--- a/chrome/browser/gtk/tab_contents_drag_source.h
+++ b/chrome/browser/gtk/tab_contents_drag_source.h
@@ -52,6 +52,8 @@ class TabContentsDragSource : public MessageLoopForUI::Observer {
GdkDragContext*);
CHROMEGTK_CALLBACK_4(TabContentsDragSource, void, OnDragDataGet,
GdkDragContext*, GtkSelectionData*, guint, guint);
+ CHROMEGTK_CALLBACK_1(TabContentsDragSource, gboolean, OnDragIconExpose,
+ GdkEventExpose*);
gfx::NativeView GetContentNativeView() const;
@@ -64,7 +66,7 @@ class TabContentsDragSource : public MessageLoopForUI::Observer {
// The image used for depicting the drag, and the offset between the cursor
// and the top left pixel.
- SkBitmap drag_image_;
+ GdkPixbuf* drag_pixbuf_;
gfx::Point image_offset_;
// The mime type for the file contents of the current drag (if any).