Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Issue 2905003003: Store suggestions from Android spellchecker in spelling markers (Closed)

Created:
3 years, 7 months ago by rlanday
Modified:
3 years, 6 months ago
CC:
agrieve+watch_chromium.org, chromium-reviews, groby+spellwatch_chromium.org, rlp+watch_chromium.org, rouslan+spell_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Store suggestions from Android spellchecker in spelling markers Currently, when we run the Android spellchecker, we use the results to create spelling DocumentMarkers to draw the red misspelling underlines, but we discard the suggestions. This CL passes the suggestions into the SpellCheckResult objects used to create the DocumentMarkers so we end up with the suggestions on the markers. BUG=715365 Review-Url: https://codereview.chromium.org/2905003003 Cr-Commit-Position: refs/heads/master@{#478328} Committed: https://chromium.googlesource.com/chromium/src/+/ba70234d44521a171182fb16ce0e2935fd61e2f4

Patch Set 1 #

Patch Set 2 : Add a fake dependency so I can stack another CL on top of this #

Messages

Total messages: 25 (14 generated)
rlanday
Would it make sense to write a unit test for SpellCheckerSessionBridge.onGetSentenceSuggestions()? Ideally I think it'd ...
3 years, 7 months ago (2017-05-25 22:30:00 UTC) #4
rlanday
There is apparently currently zero test coverage for Android spellcheck. I uploaded a CL where ...
3 years, 6 months ago (2017-06-02 21:19:28 UTC) #7
groby-ooo-7-16
RS LGTM (The code looks OK, but your JNI demons startle and frighten me ;)
3 years, 6 months ago (2017-06-07 16:45:30 UTC) #12
rlanday
On 2017/06/07 at 16:45:30, groby wrote: > RS LGTM (The code looks OK, but your ...
3 years, 6 months ago (2017-06-07 17:09:26 UTC) #14
timvolodine
On 2017/06/07 17:09:26, rlanday wrote: > On 2017/06/07 at 16:45:30, groby wrote: > > RS ...
3 years, 6 months ago (2017-06-08 20:45:22 UTC) #15
rlanday
On 2017/06/08 at 20:45:22, timvolodine wrote: > On 2017/06/07 17:09:26, rlanday wrote: > > On ...
3 years, 6 months ago (2017-06-08 21:00:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2905003003/20001
3 years, 6 months ago (2017-06-09 17:03:46 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/ba70234d44521a171182fb16ce0e2935fd61e2f4
3 years, 6 months ago (2017-06-09 17:56:11 UTC) #22
timvolodine
On 2017/06/08 21:00:05, rlanday wrote: > On 2017/06/08 at 20:45:22, timvolodine wrote: > > On ...
3 years, 6 months ago (2017-06-09 18:00:23 UTC) #23
aelias_OOO_until_Jul13
On 2017/06/09 at 18:00:23, timvolodine wrote: > On 2017/06/08 21:00:05, rlanday wrote: > > On ...
3 years, 6 months ago (2017-06-09 21:57:18 UTC) #24
rlanday
3 years, 6 months ago (2017-06-09 22:18:39 UTC) #25
Message was sent while issue was closed.
I don't think stashing the suggestions in Java is practical, I think that would
add a lot of complexity for no good reason (we would need some way of linking
them with the corresponding spelling markers).

I'll also note that there's currently work underway to make spellchecking
asynchronous so it no longer blocks editing operations:
crbug.com/716642

Re-running spellcheck when we tap a marker takes us in the opposite direction,
since it requires us to block on running spellcheck, after we've already waited
300 ms to verify that we got a single tap and not a double-tap. We'd also have
to do a second round of Mojo calls to the browser and back (the first is to set
the timer in the browser and have it fire, the second would be to run spellcheck
again), which provides another point where the text can get changed in the
middle of the operation and cause bugs.

Powered by Google App Engine
This is Rietveld 408576698