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

Unified Diff: ui/touch_selection/touch_selection_controller.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_handle_unittest.cc ('k') | ui/touch_selection/touch_selection_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/touch_selection/touch_selection_controller.h
diff --git a/ui/touch_selection/touch_selection_controller.h b/ui/touch_selection/touch_selection_controller.h
index 797b7556444b46046c8f6b48908d4b8aae1af283..3a5b83e20065b537003a6ee28f9f0fe76b211ab4 100644
--- a/ui/touch_selection/touch_selection_controller.h
+++ b/ui/touch_selection/touch_selection_controller.h
@@ -146,11 +146,9 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController
enum InputEventType { TAP, REPEATED_TAP, LONG_PRESS, INPUT_EVENT_TYPE_NONE };
// TouchHandleClient implementation.
- void OnDragBegin(const TouchSelectionDraggable& draggable,
- const gfx::PointF& drag_position) override;
- void OnDragUpdate(const TouchSelectionDraggable& draggable,
- const gfx::PointF& drag_position) override;
- void OnDragEnd(const TouchSelectionDraggable& draggable) override;
+ void OnDragEvent(const TouchHandleDragEvent event,
+ const TouchSelectionDraggable& draggable,
+ const gfx::PointF& start_position) override;
bool IsWithinTapSlop(const gfx::Vector2dF& delta) const override;
void OnHandleTapped(const TouchHandle& handle) override;
void SetNeedsAnimate() override;
@@ -158,6 +156,12 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController
base::TimeDelta GetMaxTapDuration() const override;
bool IsAdaptiveHandleOrientationEnabled() const override;
+ void HandleDragBegin(const TouchSelectionDraggable& draggable,
+ const gfx::PointF& drag_position);
+ void HandleDragUpdate(const TouchSelectionDraggable& draggable,
+ const gfx::PointF& drag_position);
+ void HandleDragEnd(const TouchSelectionDraggable& draggable);
+
// LongPressDragSelectorClient implementation.
void OnLongPressDragActiveStateChanged() override;
gfx::PointF GetSelectionStart() const override;
« no previous file with comments | « ui/touch_selection/touch_handle_unittest.cc ('k') | ui/touch_selection/touch_selection_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698