Description[Reland] Allow storing multiple replacements on SpellCheckResult
This CL was reverted because it did not properly handle the case where a
misspelling result is created with no suggested replacements. We want to
preserve misspelling results that don't include any suggested replacements, but
remove those that have some suggested replacements but they're all just changing
between different types of apostrophes.
Original CL:
https://codereview.chromium.org/2848943002
Revert:
https://codereview.chromium.org/2906243002
Original description:
Allow storing multiple replacements on SpellCheckResult
I'm working on adding support for the Android spellcheck suggestion list that
appears in a native text box when you tap on a misspelled word. It appears that
I need to modify this piece of infrastructure to support passing multiple
suggestions through to the Spelling marker that gets added.
For reference, we construct the SpellCheckResult objects from the Android
spellchecker results in SpellCheckerSessionBridge::ProcessSpellCheckResults().
Alternatively, ContextMenuClientImpl has logic for calling the spellchecker
again to get the list of suggestions that we might be able to use:
https://chromium.googlesource.com/chromium/src/+/adc8910776c64a876f0422454da618a37d01167b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp#346
However, I talked to aelias and he said it would be better to store the
suggestions the first time we call the spellchecker, at the time we add the
marker, to avoid going back and forth unnecessarily.
BUG=715365, 727172
Review-Url: https://codereview.chromium.org/2911253003
Cr-Commit-Position: refs/heads/master@{#476644}
Committed: https://chromium.googlesource.com/chromium/src/+/455b156778ed1f2df63f8a14dff99399c88e475c
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fix spell_check_host_impl_unittest.cc #
Total comments: 1
Patch Set 3 : Filter apostrophe logic into helper CL #
Total comments: 2
Patch Set 4 : Fix typo #Patch Set 5 : Fix typo #
Total comments: 2
Patch Set 6 : Rebase, make changes requested by noel@ #Patch Set 7 : Rebase #Messages
Total messages: 65 (41 generated)
|