diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-12 19:30:21 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-12 19:30:21 +0000 |
commit | eda2b5a29df212809fb3ee5a8e8c42017b635f1c (patch) | |
tree | e0b9116beca023c3400cee5e28baa7114dee9cd2 /chrome/browser/spellchecker.h | |
parent | 01804b55e214f78aec2618b811a5ffa7079104dd (diff) | |
download | chromium_src-eda2b5a29df212809fb3ee5a8e8c42017b635f1c.zip chromium_src-eda2b5a29df212809fb3ee5a8e8c42017b635f1c.tar.gz chromium_src-eda2b5a29df212809fb3ee5a8e8c42017b635f1c.tar.bz2 |
Add Automatic spell correction support in Chrome.
Issue=7624
Review URL: http://codereview.chromium.org/42608
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.h')
-rw-r--r-- | chrome/browser/spellchecker.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/spellchecker.h b/chrome/browser/spellchecker.h index 2827991..0c0b535 100644 --- a/chrome/browser/spellchecker.h +++ b/chrome/browser/spellchecker.h @@ -75,6 +75,12 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> { int* misspelling_len, std::vector<std::wstring>* optional_suggestions); + // Find a possible correctly spelled word for a misspelled word. Computes an + // empty string if input misspelled word is too long, there is ambiguity, or + // the correct spelling cannot be determined. + void GetAutoCorrectionWord(const std::wstring& word, + std::wstring* autocorrect_word); + // Add custom word to the dictionary, which means: // a) Add it to the current hunspell object for immediate use, // b) Add the word to a file in disk for custom dictionary. |