diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 01:13:11 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 01:13:11 +0000 |
commit | 8fa18a33d2dee21f748139ef503d08ebb4b706af (patch) | |
tree | eb69b882d33b06f9a82fd0d90ffcc29a8a2884f8 /chrome/browser/cocoa | |
parent | 7cebf25a2c487e8a2428142b260f443bf6107fcf (diff) | |
download | chromium_src-8fa18a33d2dee21f748139ef503d08ebb4b706af.zip chromium_src-8fa18a33d2dee21f748139ef503d08ebb4b706af.tar.gz chromium_src-8fa18a33d2dee21f748139ef503d08ebb4b706af.tar.bz2 |
Basic DragImage implementation.
Only the chromium part is for review. The webkit part shows how that will look when I create the patch for webkit later. This can be landed without the change to webkit.
TODO later:
- use the image on windows, mac
- implement the other DragImageRef functions
TEST=drag an image from the render view in GTK
BUG=11457
Review URL: http://codereview.chromium.org/668125
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r-- | chrome/browser/cocoa/notifications/balloon_view_host_mac.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/notifications/balloon_view_host_mac.h b/chrome/browser/cocoa/notifications/balloon_view_host_mac.h index 3568576..aabbba8 100644 --- a/chrome/browser/cocoa/notifications/balloon_view_host_mac.h +++ b/chrome/browser/cocoa/notifications/balloon_view_host_mac.h @@ -15,6 +15,10 @@ class Profile; class RenderViewHost; +class SkBitmap; +namespace gfx { +class Point; +} // BalloonViewHost class is a delegate to the renderer host for the HTML // notification. When initialized it creates a new RenderViewHost and loads @@ -76,7 +80,9 @@ class BalloonViewHost : public RenderViewHostDelegate, const gfx::Rect& initial_pos) {} virtual void ShowContextMenu(const ContextMenuParams& params) {} virtual void StartDragging(const WebDropData& drop_data, - WebKit::WebDragOperationsMask allowed_ops) {} + WebKit::WebDragOperationsMask allowed_ops, + const SkBitmap& image, + const gfx::Point& image_offset) {} virtual void UpdateDragCursor(WebKit::WebDragOperation operation) {} virtual void GotFocus() {} virtual void TakeFocus(bool reverse) {} |