Patch 3.3: Refactored cocoa_spelling_engine_mac to be generic.
commit34c72440b1be1223e8889f66290f6c1961526a13
authordylanking <dylanking@google.com>
Thu, 23 Jul 2015 23:19:58 +0000 (23 16:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Jul 2015 23:20:57 +0000 (23 23:20 +0000)
tree1cb2bc23f3f4942a03d72bfaf3c2eef583e5c62c
parent4b5d198109d6ca27f1d408ccb6d9ea29ceb2a102
Patch 3.3: Refactored cocoa_spelling_engine_mac to be generic.

Mostly just replacing CocoaSpellingEngine with PlatformSpellingEngine,
a class that can be used by any system that wants to use
its own spellchecker.

If the implementation of the PlatformSpellingEngine ends up being
significantly different for Mac and Android, may need to split the
implementation into separate source files in the future.

Part 3 of a 3 part breakdown of
https://codereview.chromium.org/1204293003.
The breakdown will also include some changes to the original CL.

BUG=415302

Review URL: https://codereview.chromium.org/1231103004

Cr-Commit-Position: refs/heads/master@{#340206}
chrome/browser/BUILD.gn
chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
chrome/chrome_browser.gypi
chrome/chrome_renderer.gypi
chrome/chrome_tests_unit.gypi
chrome/renderer/BUILD.gn
chrome/renderer/spellchecker/hunspell_engine.cc
chrome/renderer/spellchecker/platform_spelling_engine.cc [moved from chrome/renderer/spellchecker/cocoa_spelling_engine_mac.cc with 62% similarity]
chrome/renderer/spellchecker/platform_spelling_engine.h [moved from chrome/renderer/spellchecker/cocoa_spelling_engine_mac.h with 70% similarity]
chrome/test/BUILD.gn