Home
last modified time | relevance | path

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

/external/chromium/chrome/browser/translate/
Dtranslate_prefs.cc29 const std::string& original_language) { in IsLanguageBlacklisted() argument
30 return IsValueBlacklisted(kPrefTranslateLanguageBlacklist, original_language); in IsLanguageBlacklisted()
33 void TranslatePrefs::BlacklistLanguage(const std::string& original_language) { in BlacklistLanguage() argument
34 BlacklistValue(kPrefTranslateLanguageBlacklist, original_language); in BlacklistLanguage()
38 const std::string& original_language) { in RemoveLanguageFromBlacklist() argument
39 RemoveValueFromBlacklist(kPrefTranslateLanguageBlacklist, original_language); in RemoveLanguageFromBlacklist()
55 const std::string& original_language, in IsLanguagePairWhitelisted() argument
60 if (dict->GetString(original_language, &auto_target_lang) && in IsLanguagePairWhitelisted()
68 const std::string& original_language, in WhitelistLanguagePair() argument
76 dict->SetString(original_language, target_language); in WhitelistLanguagePair()
[all …]
Dtranslate_prefs.h27 bool IsLanguageBlacklisted(const std::string& original_language);
28 void BlacklistLanguage(const std::string& original_language);
29 void RemoveLanguageFromBlacklist(const std::string& original_language);
35 bool IsLanguagePairWhitelisted(const std::string& original_language,
37 void WhitelistLanguagePair(const std::string& original_language,
39 void RemoveLanguagePairFromWhitelist(const std::string& original_language,
57 const std::string& original_language, const GURL& url);
59 const std::string& original_language, std::string* target_language);
68 bool IsLanguageWhitelisted(const std::string& original_language,
Doptions_menu_model.cc32 string16 original_language = translate_delegate->GetLanguageDisplayableNameAt( in OptionsMenuModel() local
42 original_language, target_language)); in OptionsMenuModel()
46 original_language)); in OptionsMenuModel()
54 original_language)); in OptionsMenuModel()
Dtranslate_infobar_delegate.cc30 const std::string& original_language, in CreateDelegate() argument
37 original_language != chrome::kUnknownLanguageCode); in CreateDelegate()
38 if ((original_language != chrome::kUnknownLanguageCode && in CreateDelegate()
39 !TranslateManager::IsSupportedLanguage(original_language)) || in CreateDelegate()
44 original_language, target_language); in CreateDelegate()
52 const std::string& original_language, in CreateErrorDelegate() argument
55 original_language, target_language); in CreateErrorDelegate()
310 const std::string& original_language, in TranslateInfoBarDelegate() argument
344 if (language_code == original_language) { in TranslateInfoBarDelegate()
Dtranslate_infobar_delegate.h46 const std::string& original_language,
53 const std::string& original_language,
154 const std::string& original_language,
Dtranslate_manager.cc242 helper->language_state().original_language())); in Observe()
501 helper->language_state().original_language()); in RevertTranslation()
514 report_error_url += helper->language_state().original_language(); in ReportLanguageDetectionError()
/external/chromium/chrome/browser/tab_contents/
Dlanguage_state.h47 const std::string& original_language() const { return original_lang_; } in original_language() function
Drender_view_context_menu.cc912 helper->language_state().original_language(); in IsCommandIdEnabled()
1365 std::string original_lang = helper->language_state().original_language(); in ExecuteCommand()
/external/chromium/chrome/browser/
Dbrowser_browsertest.cc574 EXPECT_TRUE(helper->language_state().original_language().empty()); in IN_PROC_BROWSER_TEST_F()
580 EXPECT_EQ("en", helper->language_state().original_language()); in IN_PROC_BROWSER_TEST_F()
588 EXPECT_TRUE(helper->language_state().original_language().empty()); in IN_PROC_BROWSER_TEST_F()
594 EXPECT_EQ("fr", helper->language_state().original_language()); in IN_PROC_BROWSER_TEST_F()
/external/chromium/chrome/browser/extensions/
Dextension_tabs_module.cc1267 if (!helper->language_state().original_language().empty()) { in RunImpl()
1272 helper->language_state().original_language())); in RunImpl()
/external/chromium/chrome/browser/automation/
Dautomation_provider_observers.cc1330 helper->language_state().original_language(), in Observe()
1333 helper->language_state().original_language()); in Observe()
Dtesting_automation_provider.cc3643 std::string language = helper->language_state().original_language(); in GetTranslateInfo()