Chromium Code Reviews| Index: chrome/browser/ui/webui/chromeos/login/l10n_util.h |
| diff --git a/chrome/browser/ui/webui/chromeos/login/l10n_util.h b/chrome/browser/ui/webui/chromeos/login/l10n_util.h |
| index 756e728399e0b68e095d0b406faba2bf2034f76f..53a6a7a6aa013b52d65fe7c092dd07d53d3ded40 100644 |
| --- a/chrome/browser/ui/webui/chromeos/login/l10n_util.h |
| +++ b/chrome/browser/ui/webui/chromeos/login/l10n_util.h |
| @@ -10,6 +10,7 @@ |
| #include "base/callback.h" |
| #include "base/memory/scoped_ptr.h" |
| +#include "base/strings/string16.h" |
| namespace base { |
| class DictionaryValue; |
| @@ -26,6 +27,19 @@ extern const char kMostRelevantLanguagesDivider[]; |
| // Utility methods for retrieving lists of supported locales and input methods / |
| // keyboard layouts during OOBE and on the login screen. |
| +// Returns a single language entry (a helper function for GetUILanguageList). |
| +base::DictionaryValue* CreateLanguageEntry( |
| + const std::string& language_code, |
| + const base::string16& language_display_name, |
| + const std::string& language_directionality, |
|
dzhioev (left Google)
2014/10/01 15:08:08
You can calculate directionality inside of this fu
Alexander Alekseev
2014/10/02 13:12:07
Done.
|
| + const base::string16& language_native_display_name); |
| + |
| +// Helper function for GetUILanguageList. |
| +// Requires |language_display_name| after |
| +// base::i18n::UnadjustStringForLocaleDirection. |
| +const std::string GetLanguageDirectionality( |
| + const base::string16& language_display_name); |
| + |
| // Return a list of languages in which the UI can be shown. Each list entry is a |
| // dictionary that contains data such as the language's locale code and a |
| // display name. The list will consist of the |most_relevant_language_codes|, |