diff options
author | glotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 19:08:43 +0000 |
---|---|---|
committer | glotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-09 19:08:43 +0000 |
commit | 890c4efad2204283b8694e6b841c15375ad1390b (patch) | |
tree | 8386a2a0291f616e6f0bef6ac141a0de3b062d94 /chrome/browser/language_combobox_model.h | |
parent | c1786301d064a8f1d26fab2393e176d9f3464822 (diff) | |
download | chromium_src-890c4efad2204283b8694e6b841c15375ad1390b.zip chromium_src-890c4efad2204283b8694e6b841c15375ad1390b.tar.gz chromium_src-890c4efad2204283b8694e6b841c15375ad1390b.tar.bz2 |
Language selection menu rearranged to main menu with main languages and sub-menu with all others.
BUG=35248
TEST=Switch the language used by the ChromiumOS using the top left corner menu of the Network selection wizard.
Or you may use the following command on desktop using Chromium (built with GYP_DEFINES="chromeos=1"):
out/Debug/chrome --login-manager --login-name=nework
Review URL: http://codereview.chromium.org/732001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41061 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/language_combobox_model.h')
-rw-r--r-- | chrome/browser/language_combobox_model.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/language_combobox_model.h b/chrome/browser/language_combobox_model.h index 8a58d0e..38fab4e1 100644 --- a/chrome/browser/language_combobox_model.h +++ b/chrome/browser/language_combobox_model.h @@ -34,9 +34,13 @@ class LanguageList { virtual ~LanguageList() {} - virtual int get_languages_count() const; + // Duplicates specified languages at the beginning of the list for + // easier access. + void CopySpecifiedLanguagesUp(const std::string& locale_codes); - virtual std::wstring GetLanguageNameAt(int index) const; + int get_languages_count() const; + + std::wstring GetLanguageNameAt(int index) const; // Return the locale for the given index. E.g., may return pt-BR. std::string GetLocaleFromIndex(int index) const; |