Commit 1a41c38d authored by Darren Shen's avatar Darren Shen Committed by Commit Bot

ime: Support other underline styles in SetCompositionRange.

Other styles need to be supported for certain decoders.

Bug: 973354
Change-Id: I3067c4e0ede74c9f0f2b09542ec4afbbf6e22e83
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1692222Reviewed-by: default avatarShu Chen <shuchen@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676294}
parent 2607c5b7
......@@ -410,6 +410,14 @@ InputMethodPrivateSetCompositionRangeFunction::Run() {
case input_method_private::UNDERLINE_STYLE_UNDERLINE:
segment_info.style = InputMethodEngineBase::SEGMENT_STYLE_UNDERLINE;
break;
case input_method_private::UNDERLINE_STYLE_DOUBLEUNDERLINE:
segment_info.style =
InputMethodEngineBase::SEGMENT_STYLE_DOUBLE_UNDERLINE;
break;
case input_method_private::UNDERLINE_STYLE_NOUNDERLINE:
segment_info.style =
InputMethodEngineBase::SEGMENT_STYLE_NO_UNDERLINE;
break;
case input_method_private::UNDERLINE_STYLE_NONE:
EXTENSION_FUNCTION_VALIDATE(false);
break;
......
......@@ -37,7 +37,7 @@
"id": "UnderlineStyle",
"type": "string",
"description": "The type of the underline to modify a composition segment.",
"enum": ["underline"]
"enum": ["underline", "doubleUnderline", "noUnderline"]
},
{
"id": "FocusReason",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment