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

Issue 2791753003: Split WebTextCheckClient off WebSpellCheckClient (Closed)

Created:
3 years, 8 months ago by Xiaocheng
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, groby+spellwatch_chromium.org, jam, jochen+watch_chromium.org, kinuko+watch, mlamouri+watch-content_chromium.org, Peter Beverloo, rlp+watch_chromium.org, rouslan+spell_chromium.org, timvolodine
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Split WebTextCheckClient off WebSpellCheckClient This is Patch 2 of 5 for making SpellCheckProvider a RenderFrameObserver, so that spellcheck can work in OOPIF. Full design: https://goo.gl/VfCENk This patch splits the text checking functions off interface WebSpellCheckClient into a new interface WebTextCheckClient, and makes it also referenced by WebView (for now). Clients should call WebView::setTextCheckClient in initialization. For subclasses implementing the interface: - SpellCheckProvider is made to implement both interfaces - Other subclasses are switch to implement WebTextCheckClient since they no longer implement any of WebSpellCheckClient's functions BUG=638361 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2791753003 Cr-Commit-Position: refs/heads/master@{#461857} Committed: https://chromium.googlesource.com/chromium/src/+/62dc793dc640ae5fd16d571a0c9199fe0fb740d0

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Make SpellCheckClient implement WebTextCheckClient only #

Total comments: 3

Patch Set 4 : Change ../platform to public/platform #

Patch Set 5 : Add TODOs for class renaming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -74 lines) Patch
M components/spellcheck/renderer/spellcheck_multilingual_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/spellcheck/renderer/spellcheck_provider.h View 2 chunks +8 lines, -5 lines 0 comments Download
M components/spellcheck/renderer/spellcheck_provider.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/test_runner/spell_check_client.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/shell/test_runner/test_runner.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/SpellCheckerClient.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/text/TextCheckerClient.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ContextMenuClientImpl.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/SpellCheckerClientImpl.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/TextCheckerClientImpl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/TextCheckerClientImpl.cpp View 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 15 chunks +25 lines, -25 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSpellCheckClient.h View 1 2 3 4 2 chunks +3 lines, -27 lines 0 comments Download
A third_party/WebKit/public/web/WebTextCheckClient.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebView.h View 1 2 chunks +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (18 generated)
Xiaocheng
PTAL.
3 years, 8 months ago (2017-04-03 20:10:26 UTC) #5
tkent
third_party/WebKit lgtm https://codereview.chromium.org/2791753003/diff/40001/third_party/WebKit/public/web/WebTextCheckClient.h File third_party/WebKit/public/web/WebTextCheckClient.h (right): https://codereview.chromium.org/2791753003/diff/40001/third_party/WebKit/public/web/WebTextCheckClient.h#newcode8 third_party/WebKit/public/web/WebTextCheckClient.h:8: #include "../platform/WebString.h" Please avoid ".." in #includes. ...
3 years, 8 months ago (2017-04-04 01:58:19 UTC) #7
Xiaocheng
Thanks for the review. Updated. https://codereview.chromium.org/2791753003/diff/40001/third_party/WebKit/public/web/WebTextCheckClient.h File third_party/WebKit/public/web/WebTextCheckClient.h (right): https://codereview.chromium.org/2791753003/diff/40001/third_party/WebKit/public/web/WebTextCheckClient.h#newcode8 third_party/WebKit/public/web/WebTextCheckClient.h:8: #include "../platform/WebString.h" On 2017/04/04 ...
3 years, 8 months ago (2017-04-04 02:53:24 UTC) #8
dcheng
The CL seems reasonable to me, but the differentiation between SpellCheckClient and TextCheckClient seems confusing. ...
3 years, 8 months ago (2017-04-04 07:01:09 UTC) #13
Xiaocheng
On 2017/04/04 at 07:01:09, dcheng wrote: > The CL seems reasonable to me, but the ...
3 years, 8 months ago (2017-04-04 19:02:13 UTC) #15
please use gerrit instead
components/spellcheck lgtm
3 years, 8 months ago (2017-04-04 19:03:42 UTC) #16
please use gerrit instead
Renaming would be OK with me as well.
3 years, 8 months ago (2017-04-04 19:04:11 UTC) #17
Xiaocheng
dcheng@: Can we proceed with these patches first, and perform the renaming at the end? ...
3 years, 8 months ago (2017-04-04 19:47:15 UTC) #18
dcheng
On 2017/04/04 19:47:15, Xiaocheng wrote: > dcheng@: Can we proceed with these patches first, and ...
3 years, 8 months ago (2017-04-04 19:50:18 UTC) #19
Xiaocheng
Thanks! I've added a bunch of TODOs in PS#5 about the renaming and splitting.
3 years, 8 months ago (2017-04-04 20:01:26 UTC) #20
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/2791753003/80001
3 years, 8 months ago (2017-04-04 21:45:52 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 22:00:33 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/62dc793dc640ae5fd16d571a0c91...

Powered by Google App Engine
This is Rietveld 408576698