Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use base and extent in TouchSelectionControllerImpl drag updates.
Rewrite some views touch selection methods in preparation for implementing an "expand by word, shrink by character" feature (part of go/cros-touch-text-editing, for visualisation of feature see https://drive.google.com/file/d/1LdcaCgzLQCrSaqXF9gxgTPOj_l1Eetup/view?usp=sharing): 1. In TouchSelectionControllerImpl, replace SetDraggingHandle and SelectionHandleDragged by OnDragBegin, OnDragUpdate and OnDragEnd, based on the corresponding methods in TouchSelectionController. 2. In TouchEditable, replace MoveCaretTo and SelectRect by MoveCaret, MoveRangeSelectionExtent and SelectBetweenCoordinates, based on the TouchSelectionControllerClient interface. This CL doesn't change any visible behaviour. The new "expand by word, shrink by character" behaviour will be implemented in later CLs. Bug: b:244116654, b:264824692 Change-Id: I0b3e3549b277297611d3f0765e0751579898d94b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4172677 Reviewed-by: Mohsen Izadi <mohsen@chromium.org> Reviewed-by: Dana Fried <dfried@chromium.org> Reviewed-by: Mitsuru Oshima <oshima@chromium.org> Commit-Queue: Michelle Chen <michellegc@google.com> Cr-Commit-Position: refs/heads/main@{#1096516}
- Loading branch information
Michelle
authored and
Chromium LUCI CQ
committed
Jan 25, 2023
1 parent
4c6ab01
commit 9494b2d
Showing
7 changed files
with
177 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters