Home
last modified time | relevance | path

Searched refs:original_language (Results 1 – 20 of 20) sorted by relevance

/external/chromium_org/components/translate/core/browser/
Dtranslate_prefs.h54 bool IsBlockedLanguage(const std::string& original_language) const;
55 void BlockLanguage(const std::string& original_language);
56 void UnblockLanguage(const std::string& original_language);
60 void RemoveLanguageFromLegacyBlacklist(const std::string& original_language);
68 bool IsLanguagePairWhitelisted(const std::string& original_language,
70 void WhitelistLanguagePair(const std::string& original_language,
72 void RemoveLanguagePairFromWhitelist(const std::string& original_language,
112 bool ShouldAutoTranslate(const std::string& original_language,
Dtranslate_prefs.cc118 const std::string& original_language) const { in IsBlockedLanguage()
120 original_language); in IsBlockedLanguage()
123 void TranslatePrefs::BlockLanguage(const std::string& original_language) { in BlockLanguage() argument
124 BlacklistValue(kPrefTranslateBlockedLanguages, original_language); in BlockLanguage()
127 std::string language = original_language; in BlockLanguage()
140 void TranslatePrefs::UnblockLanguage(const std::string& original_language) { in UnblockLanguage() argument
141 RemoveValueFromBlacklist(kPrefTranslateBlockedLanguages, original_language); in UnblockLanguage()
145 const std::string& original_language) { in RemoveLanguageFromLegacyBlacklist() argument
146 RemoveValueFromBlacklist(kPrefTranslateLanguageBlacklist, original_language); in RemoveLanguageFromLegacyBlacklist()
162 const std::string& original_language, in IsLanguagePairWhitelisted() argument
[all …]
Doptions_menu_model.cc32 base::string16 original_language = translate_delegate->language_name_at( in OptionsMenuModel() local
47 original_language, target_language)); in OptionsMenuModel()
51 original_language)); in OptionsMenuModel()
61 original_language)); in OptionsMenuModel()
Dtranslate_infobar_delegate.cc59 const std::string& original_language, in Create() argument
69 if (!TranslateDownloadManager::IsSupportedLanguage(original_language)) { in Create()
75 DCHECK_EQ(translate::kUnknownLanguageCode, original_language); in Create()
104 original_language, target_language, error_type, in Create()
318 const std::string& original_language, in TranslateInfoBarDelegate() argument
326 ui_delegate_(translate_manager, original_language, target_language), in TranslateInfoBarDelegate()
Dlanguage_state_unittest.cc97 EXPECT_EQ("fr", language_state.original_language()); in TEST()
103 EXPECT_EQ("fr", language_state.original_language()); in TEST()
109 EXPECT_EQ("ja", language_state.original_language()); in TEST()
Dtranslate_manager.cc259 language_state_.SetCurrentLanguage(language_state_.original_language()); in RevertTranslation()
275 language_state_.original_language()); in ReportLanguageDetectionError()
374 const std::string& original_language, in GetAutoTargetLanguage() argument
377 if (translate_prefs->ShouldAutoTranslate(original_language, in GetAutoTargetLanguage()
Dtranslate_infobar_delegate.h62 const std::string& original_language,
185 const std::string& original_language,
Dlanguage_state.h51 const std::string& original_language() const { return original_lang_; } in original_language() function
Dtranslate_ui_delegate.cc38 const std::string& original_language, in TranslateUIDelegate() argument
82 if (language_code == original_language) { in TranslateUIDelegate()
Dtranslate_ui_delegate.h32 const std::string& original_language,
Dtranslate_manager.h63 static std::string GetAutoTargetLanguage(const std::string& original_language,
/external/chromium_org/chrome/browser/translate/
Dtranslate_manager_browsertest.cc57 chrome_translate_client->GetLanguageState().original_language()); in IN_PROC_BROWSER_TEST_F()
Dchrome_translate_client.cc135 chrome_translate_client->GetLanguageState().original_language()); in GetTranslateLanguages()
Dtranslate_manager_render_view_host_unittest.cc386 chrome_translate_client->GetLanguageState().original_language(); in ShowImplementation()
/external/chromium_org/chrome/browser/ui/translate/
Dtranslate_bubble_model_impl.cc114 language_state.original_language() && in IsPageTranslatedInCurrentLanguages()
/external/chromium_org/components/translate/content/browser/
Dcontent_translate_driver.cc204 translate_manager_->GetLanguageState().original_language(), in NavigationEntryCommitted()
/external/chromium_org/chrome/browser/renderer_context_menu/
Drender_view_context_menu.cc1044 chrome_translate_client->GetLanguageState().original_language(); in IsCommandIdEnabled()
1560 chrome_translate_client->GetLanguageState().original_language(); in ExecuteCommand()
/external/chromium_org/chrome/browser/ui/
Dbrowser_browsertest.cc1432 chrome_translate_client->GetLanguageState().original_language()); in IN_PROC_BROWSER_TEST_F()
1438 chrome_translate_client->GetLanguageState().original_language()); in IN_PROC_BROWSER_TEST_F()
1453 chrome_translate_client->GetLanguageState().original_language()); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/extensions/api/tabs/
Dtabs_api.cc1617 .original_language() in RunAsync()
1626 chrome_translate_client->GetLanguageState().original_language())); in RunAsync()
/external/chromium_org/chrome/browser/policy/
Dpolicy_browsertest.cc2049 EXPECT_EQ("fr", language_state.original_language()); in IN_PROC_BROWSER_TEST_F()