Code cleanup related to spell checker |
||
Issue description1. WebSpellCheckClient and WebTextCheckClient should be moved to WebKit/public/platform, so that we don't need to wrap them with SpellCheckerClientImpl and TextCheckerClientImpl 2. Ensure that SpellCheckPanel is compiled and used only on Mac. In this way we can get rid of some redundant #if USE_BROWSER_SPELLCHECK 3. Definitions of SpellCheck.* UMA should be moved to the public histograms.xml 4. Class renaming: TextCheckerClient[Impl] --> SpellCheckerClient[Impl] SpellCheckerClient[Impl] --> SpellingUIClient[Impl] ...
,
Apr 14 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/c6cdea59ad514b6cc875dc65ad3083e633f3df91 commit c6cdea59ad514b6cc875dc65ad3083e633f3df91 Author: xiaochengh <xiaochengh@chromium.org> Date: Fri Apr 14 19:26:40 2017 Make SpellCheckPanel compiled and used only on Mac Only Mac has a spellcheck panel. Hence, this patch makes class SpellCheckPanel and relevant messages compiled and used only on Mac. BUG=711509 Review-Url: https://codereview.chromium.org/2818043002 Cr-Commit-Position: refs/heads/master@{#464774} [modify] https://crrev.com/c6cdea59ad514b6cc875dc65ad3083e633f3df91/chrome/renderer/chrome_content_renderer_client.cc [modify] https://crrev.com/c6cdea59ad514b6cc875dc65ad3083e633f3df91/components/spellcheck/BUILD.gn [modify] https://crrev.com/c6cdea59ad514b6cc875dc65ad3083e633f3df91/components/spellcheck/common/spellcheck_messages.h [modify] https://crrev.com/c6cdea59ad514b6cc875dc65ad3083e633f3df91/components/spellcheck/renderer/BUILD.gn [modify] https://crrev.com/c6cdea59ad514b6cc875dc65ad3083e633f3df91/components/spellcheck/renderer/spellcheck_panel.cc [modify] https://crrev.com/c6cdea59ad514b6cc875dc65ad3083e633f3df91/components/spellcheck/renderer/spellcheck_panel.h [modify] https://crrev.com/c6cdea59ad514b6cc875dc65ad3083e633f3df91/components/spellcheck/spellcheck_build_features.gni
,
Apr 14 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/af00eab7c9c6666be2a8c6876280df4fbdb9c655 commit af00eab7c9c6666be2a8c6876280df4fbdb9c655 Author: xiaochengh <xiaochengh@chromium.org> Date: Fri Apr 14 21:16:42 2017 Remove a TODO from components/spellcheck/renderer/BUILD.gn BUG=711509 Review-Url: https://codereview.chromium.org/2820433007 Cr-Commit-Position: refs/heads/master@{#464796} [modify] https://crrev.com/af00eab7c9c6666be2a8c6876280df4fbdb9c655/components/spellcheck/renderer/BUILD.gn
,
Apr 20 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/34b5b42e28359dad00ab6f66a2516539a87422f7 commit 34b5b42e28359dad00ab6f66a2516539a87422f7 Author: xiaochengh <xiaochengh@chromium.org> Date: Thu Apr 20 01:35:20 2017 Change WebLocalFrame::SpellingMarkerOffsetsForTest to a local function in WebFrameTest The above mentioned function is only used in WebFrameTest, so this patch moves it to WebFrameTest.cpp as a static function for better code health. BUG=711509 Review-Url: https://codereview.chromium.org/2827913002 Cr-Commit-Position: refs/heads/master@{#465850} [modify] https://crrev.com/34b5b42e28359dad00ab6f66a2516539a87422f7/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp [modify] https://crrev.com/34b5b42e28359dad00ab6f66a2516539a87422f7/third_party/WebKit/Source/web/WebLocalFrameImpl.h [modify] https://crrev.com/34b5b42e28359dad00ab6f66a2516539a87422f7/third_party/WebKit/Source/web/tests/WebFrameTest.cpp [modify] https://crrev.com/34b5b42e28359dad00ab6f66a2516539a87422f7/third_party/WebKit/public/web/WebLocalFrame.h
,
Apr 27 2017
,
Dec 20 2017
Summary of current status: > 1. WebSpellCheckClient and WebTextCheckClient should be moved to > WebKit/public/platform, so that we don't need to wrap them with > SpellCheckerClientImpl and TextCheckerClientImpl Done (in a different way). dgozman@ removed the XXXClientImpl classes. > 2. Ensure that SpellCheckPanel is compiled and used only on Mac. > In this way we can get rid of some redundant #if USE_BROWSER_SPELLCHECK Done. > 3. Definitions of SpellCheck.* UMA should be moved to the public > histograms.xml Not done. > 4. Class renaming: > TextCheckerClient[Impl] --> SpellCheckerClient[Impl] > SpellCheckerClient[Impl] --> SpellingUIClient[Impl] > ... Not needed. I planned this renamining because there were too many XXXClient classes with confusing names. Now that we only have WebTextCheckClient and WebSpellCheckPanelHostClient, there's no longer confusion in names.
,
Dec 20 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/1ee3c4769225631dfb2c472234a6fc2f03743c46 commit 1ee3c4769225631dfb2c472234a6fc2f03743c46 Author: Xiaocheng Hu <xiaochengh@chromium.org> Date: Wed Dec 20 23:18:19 2017 Remove a TODO of renaming WebTextCheckClient We used to have a lot of spellchecking-related classes with confusing names [Web]{Spell,Text}XXXClient[Impl], making it hard to distinguish them. So we planned to rename some of them for better clarity. Now that we only have to such classes with clear names, the TODO is no longer needed. The only two remaining classes are: - WebTextCheckClient - WebSpellCheckPanelHostClient Bug: 711509 Notry: True Change-Id: Ieb52095aca9fbec19a4773e3104edb9e51760724 Reviewed-on: https://chromium-review.googlesource.com/837654 Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#525507} [modify] https://crrev.com/1ee3c4769225631dfb2c472234a6fc2f03743c46/third_party/WebKit/public/web/WebTextCheckClient.h |
||
►
Sign in to add a comment |
||
Comment 1 by xiaoche...@chromium.org
, Apr 13 2017Labels: -Type-Bug Type-Task
Owner: xiaoche...@chromium.org
Status: Assigned (was: Untriaged)