summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 20:14:16 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-24 20:14:16 +0000
commit1480c1f9c25ce91f827e28602d5de83e7e88b800 (patch)
treeae575e4a55fbc9052c1212d9f28db015623eca50 /chrome/browser/spellchecker.h
parent8a0098f59d6170cf0050d3ebd25b45ee77919137 (diff)
downloadchromium_src-1480c1f9c25ce91f827e28602d5de83e7e88b800.zip
chromium_src-1480c1f9c25ce91f827e28602d5de83e7e88b800.tar.gz
chromium_src-1480c1f9c25ce91f827e28602d5de83e7e88b800.tar.bz2
Switch some more ASCII locale code wstrings to strings.
Also, don't alphabetize available spellchecker locale codes. Review URL: http://codereview.chromium.org/42531 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.h')
-rw-r--r--chrome/browser/spellchecker.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/browser/spellchecker.h b/chrome/browser/spellchecker.h
index 7b8e72b..e7f4972 100644
--- a/chrome/browser/spellchecker.h
+++ b/chrome/browser/spellchecker.h
@@ -44,10 +44,6 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> {
// ASCII string representing a language and/or region, e.g. "en-US".
typedef std::string Language;
typedef std::vector<Language> Languages;
- // Languages that are suitable for display to the user.
- // TODO(port): this should be string16, but we need to port
- // l10n_util::SortStrings to string16 first.
- typedef std::vector<std::wstring> DisplayLanguages;
// Creates the spellchecker by reading dictionaries from the given directory,
// and defaulting to the given language. Both strings must be provided.
@@ -92,9 +88,9 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> {
// returns the index of the current spell check language in the vector.
// TODO(port): this should take a vector of string16, but the implementation
// has some dependencies in l10n util that need porting first.
- static int GetSpellCheckLanguagesToDisplayInContextMenu(
+ static int GetSpellCheckLanguages(
Profile* profile,
- DisplayLanguages* display_languages);
+ Languages* languages);
// This function returns the corresponding language-region code for the
// spell check language. For example, for hi, it returns hi-IN.