/external/chromium/chrome/browser/ui/webui/options/ |
D | language_options_handler_unittest.cc | 53 std::string language_code; in TEST() local 104 std::string language_code; in TEST() local 113 ASSERT_TRUE(entry->GetString("code", &language_code)); in TEST() 116 EXPECT_EQ("en-AU", language_code); in TEST() 121 ASSERT_TRUE(entry->GetString("code", &language_code)); in TEST() 124 EXPECT_EQ("en-US", language_code); in TEST() 130 ASSERT_TRUE(entry->GetString("code", &language_code)); in TEST() 133 EXPECT_EQ("fil", language_code); in TEST() 138 ASSERT_TRUE(entry->GetString("code", &language_code)); in TEST() 141 EXPECT_EQ("fr", language_code); in TEST() [all …]
|
D | language_options_handler_common.cc | 147 const std::string language_code = UTF16ToASCII(ExtractStringValue(args)); in UiLanguageChangeCallback() local 148 CHECK(!language_code.empty()); in UiLanguageChangeCallback() 150 "LanguageOptions_UiLanguageChange_%s", language_code.c_str()); in UiLanguageChangeCallback() 152 SetApplicationLocale(language_code); in UiLanguageChangeCallback() 158 const std::string language_code = UTF16ToASCII(ExtractStringValue(args)); in SpellCheckLanguageChangeCallback() local 159 CHECK(!language_code.empty()); in SpellCheckLanguageChangeCallback() 161 "LanguageOptions_SpellCheckLanguageChange_%s", language_code.c_str()); in SpellCheckLanguageChangeCallback()
|
D | language_options_handler.cc | 104 const std::string& language_code) { in SetApplicationLocale() argument 106 pref_service->SetString(prefs::kApplicationLocale, language_code); in SetApplicationLocale()
|
D | language_options_handler.h | 35 virtual void SetApplicationLocale(const std::string& language_code);
|
D | language_options_handler_common.h | 50 virtual void SetApplicationLocale(const std::string& language_code) = 0;
|
/external/chromium/chrome/browser/chromeos/input_method/ |
D | input_method_util.cc | 70 const std::string language_code = in ReloadMaps() local 75 std::make_pair(language_code, input_method.id)); in ReloadMaps() 78 std::make_pair(input_method.id, language_code)); in ReloadMaps() 88 const char* language_code = kExtraLanguages[i].language_code; in ReloadMaps() local 99 std::make_pair(language_code, input_method.id)); in ReloadMaps() 402 const std::string& language_code) { in NormalizeLanguageCode() argument 405 if (language_code.size() >= 5 && language_code[2] == '_') { in NormalizeLanguageCode() 406 std::string copied_language_code = language_code; in NormalizeLanguageCode() 419 if (language_code.size() != 3) { in NormalizeLanguageCode() 420 return language_code; in NormalizeLanguageCode() [all …]
|
D | input_method_util.h | 22 const char* language_code; member 61 std::string NormalizeLanguageCode(const std::string& language_code); 118 string16 GetLanguageDisplayNameFromCode(const std::string& language_code); 124 string16 GetLanguageNativeDisplayNameFromCode(const std::string& language_code); 147 const std::string& language_code, 155 const std::string& language_code, 179 void EnableInputMethods(const std::string& language_code, InputMethodType type,
|
D | input_method_util_unittest.cc | 140 EXPECT_EQ("zh", descriptor->language_code); in TEST_F()
|
/external/chromium/chrome/browser/ui/webui/options/chromeos/ |
D | cros_language_options_handler.cc | 92 const std::string language_code = in GetInputMethodList() local 104 language_codes->SetBoolean(language_code, true); in GetInputMethodList() 112 chromeos::input_method::kExtraLanguages[j].language_code; in GetInputMethodList() 131 const std::string language_code = in GetLanguageList() local 133 language_codes.insert(language_code); in GetLanguageList() 138 const char* language_code = in GetLanguageList() local 139 chromeos::input_method::kExtraLanguages[i].language_code; in GetLanguageList() 140 language_codes.insert(language_code); in GetLanguageList() 189 const std::string& language_code) { in SetApplicationLocale() argument 191 language_code, Profile::APP_LOCALE_CHANGED_VIA_SETTINGS); in SetApplicationLocale()
|
D | cros_language_options_handler.h | 49 virtual void SetApplicationLocale(const std::string& language_code);
|
/external/chromium/chrome/browser/chromeos/status/ |
D | input_method_menu.cc | 109 std::wstring GetLanguageName(const std::string& language_code) { in GetLanguageName() argument 111 language_code, g_browser_process->GetApplicationLocale(), true); in GetLanguageName() 598 std::string language_code = in GetTextForIndicator() local 603 if (StartsWithASCII(language_code, "zh-", false)) { in GetTextForIndicator() 605 base::SplitString(language_code, '-', &portions); in GetTextForIndicator() 607 language_code = portions[1]; in GetTextForIndicator() 611 text = StringToUpperASCII(UTF8ToWide(language_code)).substr( in GetTextForIndicator() 627 const std::string language_code in GetTextForMenu() local 630 if (language_code == "ar" || in GetTextForMenu() 631 language_code == "hi" || in GetTextForMenu() [all …]
|
/external/chromium/chrome/browser/translate/ |
D | translate_infobar_delegate.cc | 280 const std::string& language_code) { in GetLanguageDisplayableName() argument 282 language_code, g_browser_process->GetApplicationLocale(), true); in GetLanguageDisplayableName() 330 std::string language_code = *iter; in TranslateInfoBarDelegate() local 332 string16 language_name = GetLanguageDisplayableName(language_code); in TranslateInfoBarDelegate() 339 languages_.insert(iter2, LanguageNamePair(language_code, language_name)); in TranslateInfoBarDelegate() 343 std::string language_code = iter->first; in TranslateInfoBarDelegate() local 344 if (language_code == original_language) { in TranslateInfoBarDelegate() 348 if (language_code == target_language) in TranslateInfoBarDelegate()
|
D | translate_infobar_delegate.h | 137 static string16 GetLanguageDisplayableName(const std::string& language_code);
|
/external/harfbuzz_ng/src/ |
D | hb-icu-le.cc | 117 le_int32 language_code = -1 /* TODO */; in _hb_icu_le_shape() local 122 language_code, in _hb_icu_le_shape()
|
/external/chromium/chrome/browser/ui/cocoa/translate/ |
D | translate_infobar_unittest.mm | 44 virtual string16 GetDisplayNameForLocale(const std::string& language_code) {
|