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

Unified Diff: ui/app_list/views/app_list_drag_and_drop_host.h

Issue 15774015: Fixed problem with clicking on app launcher item (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed windows build issue Created 7 years, 7 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: ui/app_list/views/app_list_drag_and_drop_host.h
diff --git a/ui/app_list/views/app_list_drag_and_drop_host.h b/ui/app_list/views/app_list_drag_and_drop_host.h
index ace880490219151640f678ffd2a6465489bd28f5..7774f949699199bacec0eb80c29fb4fe8d1282d9 100644
--- a/ui/app_list/views/app_list_drag_and_drop_host.h
+++ b/ui/app_list/views/app_list_drag_and_drop_host.h
@@ -9,6 +9,7 @@
namespace gfx {
class Point;
+class Vector2d;
} // namespace gfx
namespace app_list {
@@ -21,10 +22,13 @@ class ApplicationDragAndDropHost {
// The proxy should get created using the |icon| with a magnification of
// |scale_factor| at a center location of |location_in_screen_coordinates.
// Use |replaced_view| to find the screen which is used.
+ // The |cursor_offset_from_center| is the offset from the mouse cursor to
+ // the center of the item.
virtual void CreateDragIconProxy(
const gfx::Point& location_in_screen_coordinates,
const gfx::ImageSkia& icon,
views::View* replaced_view,
+ const gfx::Vector2d& cursor_offset_from_center,
float scale_factor) = 0;
// Update the screen location of the Drag icon proxy.

Powered by Google App Engine
This is Rietveld 408576698