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

Unified Diff: chrome/browser/gtk/tab_contents_drag_source.h

Issue 668125: Basic DragImage implementation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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
Index: chrome/browser/gtk/tab_contents_drag_source.h
===================================================================
--- chrome/browser/gtk/tab_contents_drag_source.h (revision 41111)
+++ chrome/browser/gtk/tab_contents_drag_source.h (working copy)
@@ -10,9 +10,11 @@
#include "app/gfx/native_widget_types.h"
#include "base/basictypes.h"
#include "base/file_path.h"
+#include "base/gfx/point.h"
#include "base/message_loop.h"
#include "base/string16.h"
#include "googleurl/src/gurl.h"
+#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h"
class TabContents;
@@ -31,7 +33,9 @@
// Starts a drag for the tab contents this TabContentsDragSource was
// created for.
void StartDragging(const WebDropData& drop_data,
- GdkEventButton* last_mouse_down);
+ GdkEventButton* last_mouse_down,
+ const SkBitmap& image,
+ const gfx::Point& image_offset);
// MessageLoop::Observer implementation:
virtual void WillProcessEvent(GdkEvent* event);
@@ -79,6 +83,11 @@
// view). Non-NULL iff there is a current drag.
scoped_ptr<WebDropData> drop_data_;
+ // The image used for depicting the drag, and the offset between the cursor
+ // and the top left pixel.
+ SkBitmap drag_image_;
+ gfx::Point image_offset_;
+
// The mime type for the file contents of the current drag (if any).
GdkAtom drag_file_mime_type_;
« no previous file with comments | « chrome/browser/gtk/notifications/balloon_view_host_gtk.h ('k') | chrome/browser/gtk/tab_contents_drag_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698