summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker.h
diff options
context:
space:
mode:
authorsidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-03 22:56:56 +0000
committersidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-03 22:56:56 +0000
commitf6a9e5f191be83a7d0a867eed5e5754d378101bb (patch)
treeb177aa533acf9b1a7c34fbbb8752ec8c909bb87c /chrome/browser/spellchecker.h
parentc88620903fab9c32cb64b271b97b1fcd01bf820d (diff)
downloadchromium_src-f6a9e5f191be83a7d0a867eed5e5754d378101bb.zip
chromium_src-f6a9e5f191be83a7d0a867eed5e5754d378101bb.tar.gz
chromium_src-f6a9e5f191be83a7d0a867eed5e5754d378101bb.tar.bz2
Remember change in Spell Check language by putting it in the list of accept languages when the user changes the language from languages options menu.
It also includes a fix (required for this change to work) when existing users are updated to use language only code for spellcheck languages instead of languages+region. Issue=5829 Review URL: http://codereview.chromium.org/19520 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9106 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.h')
-rw-r--r--chrome/browser/spellchecker.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/spellchecker.h b/chrome/browser/spellchecker.h
index 6d59a2d..42279c2 100644
--- a/chrome/browser/spellchecker.h
+++ b/chrome/browser/spellchecker.h
@@ -92,6 +92,11 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> {
// spell check language. For example, for hi, it returns hi-IN.
static Language GetSpellCheckLanguageRegion(Language input_language);
+ // This function returns ll (language code) from ll-RR where 'RR' (region
+ // code) is redundant. However, if the region code matters, it's preserved.
+ // That is, it returns 'hi' and 'en-GB' for 'hi-IN' and 'en-GB' respectively.
+ static Language GetLanguageFromLanguageRegion(Language input_language);
+
private:
// Download dictionary files when required.
class DictionaryDownloadController;