Use Chrome's policy for auto correct word

This commit is contained in:
Cheng Zhao 2014-12-19 20:56:16 -08:00
parent c6a18b1b59
commit f6c66e7ece
2 changed files with 55 additions and 5 deletions

View file

@ -53,6 +53,11 @@ class SpellCheckClient : public blink::WebSpellCheckClient {
// Call JavaScript to check spelling.
bool CheckSpelling(const base::string16& word_to_check);
// 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.
base::string16 GetAutoCorrectionWord(const base::string16& word);
// Returns whether or not the given word is a contraction of valid words
// (e.g. "word:word").
bool IsValidContraction(const base::string16& word);