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

Unified Diff: ui/touch_selection/touch_selection_draggable.h

Issue 1424683002: Refactor TouchSelectionDraggableClient APIs Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « ui/touch_selection/touch_selection_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/touch_selection/touch_selection_draggable.h
diff --git a/ui/touch_selection/touch_selection_draggable.h b/ui/touch_selection/touch_selection_draggable.h
index 0bd9a70f8849fc0a245adac8eb8b327cb55bfeb9..972a22c80d2b9591fb93d19f67c3b0801a9f38d4 100644
--- a/ui/touch_selection/touch_selection_draggable.h
+++ b/ui/touch_selection/touch_selection_draggable.h
@@ -13,15 +13,19 @@ namespace ui {
class MotionEvent;
class TouchSelectionDraggable;
+enum TouchHandleDragEvent {
+ HANDLE_DRAG_BEGIN,
+ HANDLE_DRAG_UPDATE,
+ HANDLE_DRAG_END
+};
+
// Interface through which TouchSelectionDraggable manipulates the selection.
class UI_TOUCH_SELECTION_EXPORT TouchSelectionDraggableClient {
public:
virtual ~TouchSelectionDraggableClient() {}
- virtual void OnDragBegin(const TouchSelectionDraggable& draggable,
+ virtual void OnDragEvent(const TouchHandleDragEvent event,
+ const TouchSelectionDraggable& draggable,
const gfx::PointF& start_position) = 0;
- virtual void OnDragUpdate(const TouchSelectionDraggable& draggable,
- const gfx::PointF& new_position) = 0;
- virtual void OnDragEnd(const TouchSelectionDraggable& draggable) = 0;
virtual bool IsWithinTapSlop(const gfx::Vector2dF& delta) const = 0;
};
« no previous file with comments | « ui/touch_selection/touch_selection_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698