diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 20:20:58 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-03 20:20:58 +0000 |
commit | 154a4338764560595dd49305a2343985f728c935 (patch) | |
tree | 4ba37d24a2f4980c27145af7c46cd5fdcf1f49a9 /chrome/browser/spellchecker.h | |
parent | 7822e018e5ebabeeb3e8ff46aa67a52b1b1c1cf8 (diff) | |
download | chromium_src-154a4338764560595dd49305a2343985f728c935.zip chromium_src-154a4338764560595dd49305a2343985f728c935.tar.gz chromium_src-154a4338764560595dd49305a2343985f728c935.tar.bz2 |
UI Support for Auto Spell Correct. Currently, it is still under the command line flag --auto-spell-correct, which means that this UI support will appear only when the command line flag is enabled.BUG=www.crbug.com/13102TEST=enable this feature through the command line flag --auto-spell-correct and then use the Languages Options menu check box to toggle this feature on/off - test by typing "teh" in a text box.
Review URL: http://codereview.chromium.org/119002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.h')
-rw-r--r-- | chrome/browser/spellchecker.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/spellchecker.h b/chrome/browser/spellchecker.h index 0c0b535..a9c2946 100644 --- a/chrome/browser/spellchecker.h +++ b/chrome/browser/spellchecker.h @@ -81,6 +81,10 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> { void GetAutoCorrectionWord(const std::wstring& word, std::wstring* autocorrect_word); + // Turn auto spell correct support ON or OFF. + // |turn_on| = true means turn ON; false means turn OFF. + void EnableAutoSpellCorrect(bool turn_on); + // 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. @@ -184,6 +188,9 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> { // Set when the dictionary file is currently downloading. bool dic_is_downloading_; + // Remember state for auto spell correct. + bool auto_spell_correct_turned_on_; + // Used for generating callbacks to spellchecker, since spellchecker is a // non-reference counted object. The callback is generated by generating tasks // using NewRunableMethod on these objects. |