diff options
Diffstat (limited to 'chromium/ui/touch_selection/touch_selection_controller.h')
-rw-r--r-- | chromium/ui/touch_selection/touch_selection_controller.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chromium/ui/touch_selection/touch_selection_controller.h b/chromium/ui/touch_selection/touch_selection_controller.h index 6ec985cee00..2214024f7ef 100644 --- a/chromium/ui/touch_selection/touch_selection_controller.h +++ b/chromium/ui/touch_selection/touch_selection_controller.h @@ -33,6 +33,7 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionControllerClient { virtual void SelectBetweenCoordinates(const gfx::PointF& base, const gfx::PointF& extent) = 0; virtual void OnSelectionEvent(SelectionEventType event) = 0; + virtual void OnDragUpdate(const gfx::PointF& position) = 0; virtual std::unique_ptr<TouchHandleDrawable> CreateDrawable() = 0; virtual void DidScroll() = 0; }; @@ -120,10 +121,6 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController gfx::RectF GetStartHandleRect() const; gfx::RectF GetEndHandleRect() const; - // Returns the middle point of selection bound corresponding to the active - // selection or insertion handle. If there is no active handle, returns (0,0). - gfx::PointF GetActiveHandleBoundPoint() const; - // Returns the focal point of the start and end bounds, as defined by // their bottom coordinate. const gfx::PointF& GetStartPosition() const; @@ -174,6 +171,11 @@ class UI_TOUCH_SELECTION_EXPORT TouchSelectionController void SetTemporarilyHiddenForLongPressDrag(bool hidden); void RefreshHandleVisibility(); + // Returns the y-coordinate of middle point of selection bound corresponding + // to the active selection or insertion handle. If there is no active handle, + // returns 0.0. + float GetActiveHandleMiddleY() const; + void HideHandles(); gfx::Vector2dF GetStartLineOffset() const; |