Chromium Code Reviews
DescriptionMacViews: Enable word lookup for selectable views::Labels and multi-line text.
r423419 added support for word lookups to textfields on MacViews and r441290
added support for multi-line text selection to RenderTextHarfBuzz. This CL
enables word lookup for selectable views::Labels. Changes:
- Made views::Label inherit from WordLookupClient.
- Moved GetLineContainingYCoord and GetLineSegmentContainingXCoord from
RenderTextHarfBuzz to the base RenderText class.
- Added multi-line support to RenderText::GetDecoratedWordAtPoint.
BUG=640502, 671055
TEST=Run out/Default/views_examples_with_content_exe with the flag --enable-
harfbuzz-rendertext. Go to the Label section. Ensure word lookup works correctly
on pressing Ctrl+Command+D for selectable labels.
Review-Url: https://codereview.chromium.org/2639493002
Cr-Commit-Position: refs/heads/master@{#445313}
Committed: https://chromium.googlesource.com/chromium/src/+/666e4f0298298427d2026c2896466951f199f5bf
Patch Set 1 #
Total comments: 1
Patch Set 2 : Nit. #
Total comments: 6
Patch Set 3 : Correct baseline point logic. Add test. #
Total comments: 1
Patch Set 4 : Nit. #
Total comments: 4
Patch Set 5 : Address review #
Total comments: 6
Patch Set 6 : Address nits. #
Messages
Total messages: 26 (15 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||