Implement interim character selection highlight during IME composition.
Interim character selection is a standard UI element of Korean and some Chinese compositions. The interim char selection spans exactly one char and is visually represented as a solid rectangle behind the text, which is the visually the same as text selection highlight. In order to render the blue background highlight during composition that has interim char selection, we need to introduce a new flag |interim_char_selection| in ui::ImeTextSpan and new flag |interim_char_selection_| in blink::ImeTextSpan. If the flag is set to true, then one composition marker is added with background color equal to active background text selection highlight color. Bug: 1095682 Change-Id: If06b0ce38c2993427c04efecf6f3e2e4d9f6ec7a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2249051 Commit-Queue: Siye Liu <siliu@microsoft.com> Reviewed-by:Ken Buchanan <kenrb@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:
Yohei Yukawa <yukawa@chromium.org> Reviewed-by:
Siye Liu <siliu@microsoft.com> Cr-Commit-Position: refs/heads/master@{#780377}
Showing
Please register or sign in to comment