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

Issue 1204293003: Patch 3: Added files for platform-based spellcheck. (Closed)

Created:
5 years, 5 months ago by dylanking
Modified:
5 years, 4 months ago
CC:
chromium-reviews, groby+spellwatch_chromium.org, rlp+watch_chromium.org, rouslan+spellwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@platform_flag
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added files for platform-based spellcheck. These files are mostly skeleton code at this point. Also included skeleton Android implementations of these new platform classes. Enabled spellcheck on Android now that we are using the ChromeSwitch. BUG=415302

Patch Set 1 #

Patch Set 2 : Added android skeleton implementation of message filter. #

Patch Set 3 : Enabled spellcheck on Android. #

Patch Set 4 : Style changes/fixes #

Patch Set 5 : Enable use_platform_spellchecker flag on Android now that platform code is introduced #

Patch Set 6 : Added new files to gypi files, changed one #ifdef to avoid linking error. #

Total comments: 2

Patch Set 7 : Comment cleanup #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -62 lines) Patch
M build/common.gypi View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
A + chrome/browser/spellchecker/spellcheck_message_filter_android.cc View 1 8 chunks +26 lines, -24 lines 0 comments Download
A + chrome/browser/spellchecker/spellcheck_message_filter_platform.h View 4 chunks +10 lines, -10 lines 1 comment Download
A + chrome/browser/spellchecker/spellcheck_platform.h View 3 chunks +6 lines, -6 lines 1 comment Download
A chrome/browser/spellchecker/spellcheck_platform_android.cc View 1 2 3 4 5 6 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/spellchecker/hunspell_engine.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A + chrome/renderer/spellchecker/platform_engine.h View 2 chunks +5 lines, -5 lines 1 comment Download
A + chrome/renderer/spellchecker/platform_engine.cc View 3 chunks +12 lines, -12 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (4 generated)
dylanking
Depends on https://codereview.chromium.org/1210943008
5 years, 5 months ago (2015-07-07 02:28:41 UTC) #2
groby-ooo-7-16
Ah. Here's the missing file. However, it shouldn't just be called platform_spelling_engine. Convention for Chrome ...
5 years, 5 months ago (2015-07-07 21:45:11 UTC) #4
dylanking
On 2015/07/07 at 21:45:11, groby wrote: > Ah. Here's the missing file. However, it shouldn't ...
5 years, 5 months ago (2015-07-07 21:58:48 UTC) #5
aurimas (slooooooooow)
It looks reasonable, but you should have groby@ or rouslan@ take a look at this. ...
5 years, 5 months ago (2015-07-09 18:12:52 UTC) #6
dylanking
https://codereview.chromium.org/1204293003/diff/90001/chrome/browser/spellchecker/spellcheck_platform_android.cc File chrome/browser/spellchecker/spellcheck_platform_android.cc (right): https://codereview.chromium.org/1204293003/diff/90001/chrome/browser/spellchecker/spellcheck_platform_android.cc#newcode70 chrome/browser/spellchecker/spellcheck_platform_android.cc:70: // NSString* NS_lang_to_set = ConvertLanguageCodeToMac(lang_to_set); Done, along with a ...
5 years, 5 months ago (2015-07-09 18:58:15 UTC) #9
please use gerrit instead
5 years, 5 months ago (2015-07-09 19:45:32 UTC) #10
Please split into 3 separate patches as described below.

(Note that spellchecking implementation is a little bit of a mess. So you might
even see functions that are never used. Sorry about that. We're working on
cleaning it up over time.)

https://codereview.chromium.org/1204293003/diff/150001/chrome/browser/spellch...
File chrome/browser/spellchecker/spellcheck_message_filter_platform.h (right):

https://codereview.chromium.org/1204293003/diff/150001/chrome/browser/spellch...
chrome/browser/spellchecker/spellcheck_message_filter_platform.h:60: #endif  //
CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_MESSAGE_FILTER_PLATFORM_H_
Please split this change into a separate patch that does the following:

1) Move spellcheck_message_filter_mac.h -> spellcheck_message_filter_platform.h.

2) Move spellcheck_message_filter_mac.cc ->
spellcheck_message_filter_platform_mac.cc.

3) Copy spellcheck_message_filter_mac.cc ->
spellcheck_message_filter_platform_android.cc with only stub implementations.
There should be no original method implementations remaining, just the method
stubs.

https://codereview.chromium.org/1204293003/diff/150001/chrome/browser/spellch...
File chrome/browser/spellchecker/spellcheck_platform.h (right):

https://codereview.chromium.org/1204293003/diff/150001/chrome/browser/spellch...
chrome/browser/spellchecker/spellcheck_platform.h:112: #endif  //
CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PLATFORM_H_
Please delete spellcheck_platform_mac.h in the same patch as creating
spellcheck_platform.h. The two source files for this header should be called
spellcheck_platform_android.cc and spellcheck_platform_mac.mm. This should be
done in a separate patch.

https://codereview.chromium.org/1204293003/diff/150001/chrome/renderer/spellc...
File chrome/renderer/spellchecker/platform_engine.h (right):

https://codereview.chromium.org/1204293003/diff/150001/chrome/renderer/spellc...
chrome/renderer/spellchecker/platform_engine.h:22: #endif  //
CHROME_RENDERER_SPELLCHECKER_PLATFORM_ENGINE_H_
Please make a separate patch that moves (not copies)
cocoa_spelling_engine_mac.h/cc into platform_spelling_engine.h/cc.

Powered by Google App Engine
This is Rietveld 408576698