DescriptionThis change implements support for directional selection handles, i.e. handles that look differently depending if they are located at the left or right edge of the selection, or at the cursor. For web contents, the type of the handle is determined based on the information passed up from Blink in ViewHostMsg_SelectionBounds_Params. For Aura Textfield, it is calculated directly. New image assets (submitted in https://codereview.chromium.org/694873002) are used.
New struct ui::SelectionBound is introduced to encapsulate the information about a selection bound. This struct is purposefully made similar to cc::ViewportSelectionBound which is used by TouchSelectionController, and which we'll likely be using for RenderWidgetHostViewAura once we switch to the unified touch selection implementation between Android and Aura.
Depends on:
https://codereview.chromium.org/686513004/
https://codereview.chromium.org/694873002/
BUG=398053, 419898
Committed: https://crrev.com/218e811496df0cd6660d2f86e13ca04d10d5ef4f
Cr-Commit-Position: refs/heads/master@{#304524}
Patch Set 1 #
Total comments: 43
Patch Set 2 : Addressing review feedback. #
Total comments: 28
Patch Set 3 : Addressing feedback (contd) plus Rebase #
Total comments: 4
Patch Set 4 : Some test cleanup #
Total comments: 14
Patch Set 5 : Addressing sky's feedback. #Patch Set 6 : ' -> " in BUILD.gn #Patch Set 7 : Removing XOR #Patch Set 8 : Removing the SelectionBound test from Android, since touch_editing_controller not included in Andro… #Messages
Total messages: 35 (9 generated)
|