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

Issue 2701983002: Implement complete lifecycle transition for IdleSpellCheckCallback (Closed)

Created:
3 years, 10 months ago by Xiaocheng
Modified:
3 years, 9 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, chromium-reviews, groby+blinkspell_chromium.org, timvolodine
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement complete lifecycle transition for IdleSpellCheckCallback This patch implements complete lifecycle state transition for IdleSpellCheckCallback. With this patch, idle spell check callback will be invoked at correct timings. The only thing remaining is to fill in the member functions which actually perform checking when the callback is invoked. BUG=517298 TEST=webkit_unit_tests --gtest_filter=IdleSpellCheckCallbackTest.* Review-Url: https://codereview.chromium.org/2701983002 Cr-Original-Commit-Position: refs/heads/master@{#453159} Committed: https://chromium.googlesource.com/chromium/src/+/234937696e399887e0acef2ad037c35febca001c Review-Url: https://codereview.chromium.org/2701983002 Cr-Commit-Position: refs/heads/master@{#453169} Committed: https://chromium.googlesource.com/chromium/src/+/46b362641fc483d7d5fd0714d96db6dd39de39f6

Patch Set 1 #

Patch Set 2 : Fri Feb 17 17:05:04 PST 2017 #

Patch Set 3 : Rebased #

Patch Set 4 : Add lifecycle transition unit tests #

Total comments: 3

Patch Set 5 : Fri Feb 24 11:19:12 PST 2017 #

Patch Set 6 : Fix compile error #

Total comments: 5

Patch Set 7 : Remove default from switch #

Patch Set 8 : Fix compiler error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -28 lines) Patch
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.h View 1 2 3 4 4 chunks +36 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp View 1 2 3 4 5 6 8 chunks +65 lines, -8 lines 0 comments Download
A third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallbackTest.cpp View 1 2 3 4 5 6 1 chunk +136 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 1 2 3 4 5 6 7 3 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 44 (29 generated)
Xiaocheng
PTAL.
3 years, 10 months ago (2017-02-23 04:50:20 UTC) #9
yosin_UTC9
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode742 third_party/WebKit/Source/core/editing/Editor.cpp:742: frame().setNeedsSpellChecking(); Can we make Editor owns both SpellChecker and ...
3 years, 10 months ago (2017-02-23 05:20:49 UTC) #10
Xiaocheng
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode742 third_party/WebKit/Source/core/editing/Editor.cpp:742: frame().setNeedsSpellChecking(); On 2017/02/23 at 05:20:48, yosin_UTC9 wrote: > Can ...
3 years, 10 months ago (2017-02-23 20:46:08 UTC) #13
yosin_UTC9
https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2701983002/diff/60001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode742 third_party/WebKit/Source/core/editing/Editor.cpp:742: frame().setNeedsSpellChecking(); On 2017/02/23 at 20:46:07, Xiaocheng wrote: > On ...
3 years, 10 months ago (2017-02-24 02:10:53 UTC) #14
Xiaocheng
Updated. PTAL.
3 years, 10 months ago (2017-02-25 01:03:06 UTC) #21
yosin_UTC9
lgtm https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode744 third_party/WebKit/Source/core/editing/Editor.cpp:744: spellChecker().respondToChangedContents(endingSelection); We may want to rename |respondToChangedContents()| to ...
3 years, 10 months ago (2017-02-25 02:22:57 UTC) #24
Xiaocheng
Thanks for the review. On 2017/02/25 at 02:22:57, yosin wrote: > lgtm > > https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/Editor.cpp ...
3 years, 10 months ago (2017-02-25 02:30:06 UTC) #25
tkent
lgtm https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp File third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp (right): https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp#newcode209 third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp:209: default: Do not use |default:| in |switch| for ...
3 years, 9 months ago (2017-02-26 20:35:59 UTC) #26
Xiaocheng
Thanks for the review. https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp File third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp (right): https://codereview.chromium.org/2701983002/diff/100001/third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp#newcode209 third_party/WebKit/Source/core/editing/spellcheck/IdleSpellCheckCallback.cpp:209: default: On 2017/02/26 at 20:35:58, ...
3 years, 9 months ago (2017-02-27 04:07:18 UTC) #29
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/2701983002/120001
3 years, 9 months ago (2017-02-27 05:24:52 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/234937696e399887e0acef2ad037c35febca001c
3 years, 9 months ago (2017-02-27 05:46:08 UTC) #36
Xiaocheng
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2720663002/ by xiaochengh@chromium.org. ...
3 years, 9 months ago (2017-02-27 05:56:02 UTC) #37
hajimehoshi
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2715193002/ by hajimehoshi@chromium.org. ...
3 years, 9 months ago (2017-02-27 05:56:33 UTC) #38
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/2701983002/140001
3 years, 9 months ago (2017-02-27 06:14:35 UTC) #41
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 08:11:17 UTC) #44
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/46b362641fc483d7d5fd0714d96d...

Powered by Google App Engine
This is Rietveld 408576698