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

Unified Diff: ui/views/drag_controller.h

Issue 265713007: views: Update event-related API to use PointF/RectF instead of Point/Rect. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/views/drag_controller.h
diff --git a/ui/views/drag_controller.h b/ui/views/drag_controller.h
index eace6a9839bc8c19c442abdc93c69ed57f9ed5a0..601a5a37ed03c808732989b5cec7e8adcea762b2 100644
--- a/ui/views/drag_controller.h
+++ b/ui/views/drag_controller.h
@@ -25,20 +25,19 @@ class VIEWS_EXPORT DragController {
public:
// Writes the data for the drag.
virtual void WriteDragDataForView(View* sender,
- const gfx::Point& press_pt,
+ const gfx::PointF& press_pt,
ui::OSExchangeData* data) = 0;
// Returns the supported drag operations (see DragDropTypes for possible
// values). A drag is only started if this returns a non-zero value.
- virtual int GetDragOperationsForView(View* sender,
- const gfx::Point& p) = 0;
+ virtual int GetDragOperationsForView(View* sender, const gfx::PointF& p) = 0;
// Returns true if a drag operation can be started.
// |press_pt| represents the coordinates where the mouse was initially
// pressed down. |p| is the current mouse coordinates.
virtual bool CanStartDragForView(View* sender,
- const gfx::Point& press_pt,
- const gfx::Point& p) = 0;
+ const gfx::PointF& press_pt,
+ const gfx::PointF& p) = 0;
protected:
virtual ~DragController() {}

Powered by Google App Engine
This is Rietveld 408576698