Passing BackgroundColorSpan and UnderlineSpan from Clank to Blink.
This CL enables custom color to be specified for IME composition.
Its Blink counterpart is
https://codereview.chromium.org/313233002/ . Details:
- Prerequesite: the Blink change, since we assume WebCore::CompositionUnderline and
blink::WebCompositionUnderline have been updated.
- Prerequesite CL:
https://codereview.chromium.org/319553002/ to allow
structures to temporarily mismatch, without triggering compiler assert.
- Adding background_color to ui::CompositionUnderline.
- To pass data from Android to Native C++, using JNI generator with callback: In C++, ImeAdapterAndroid::SetComposingText() calls Java to iterate over spans, then dispatch BackgroundColorSpan and UnderlineSpan data to C++ code and populate list of blink::WebCompositionUnderline.
We'll need to split this CL when we commit.
BUG=
135900
Committed:
https://src.chromium.org/viewvc/chrome?view=rev&revision=278794