Home
last modified time | relevance | path

Searched refs:original_lang (Results 1 – 6 of 6) sorted by relevance

/external/chromium/chrome/browser/translate/
Dtranslate_manager_browsertest.cc66 std::string* original_lang, in GetTranslateMessage() argument
77 if (original_lang) in GetTranslateMessage()
78 *original_lang = translate_param.c; in GetTranslateMessage()
304 std::string original_lang, target_lang; in TEST_F() local
305 EXPECT_TRUE(GetTranslateMessage(&page_id, &original_lang, &target_lang)); in TEST_F()
306 EXPECT_EQ("fr", original_lang); in TEST_F()
322 EXPECT_TRUE(GetTranslateMessage(&page_id, &original_lang, &target_lang)); in TEST_F()
323 EXPECT_EQ(new_original_lang, original_lang); in TEST_F()
337 EXPECT_TRUE(GetTranslateMessage(&page_id, &original_lang, &target_lang)); in TEST_F()
338 EXPECT_EQ(new_original_lang, original_lang); in TEST_F()
[all …]
Dtranslate_infobar_delegate.cc143 const std::string& original_lang = GetOriginalLanguageCode(); in ToggleLanguageBlacklist() local
144 if (prefs_.IsLanguageBlacklisted(original_lang)) { in ToggleLanguageBlacklist()
145 prefs_.RemoveLanguageFromBlacklist(original_lang); in ToggleLanguageBlacklist()
147 prefs_.BlacklistLanguage(original_lang); in ToggleLanguageBlacklist()
176 const std::string& original_lang = GetOriginalLanguageCode(); in ToggleAlwaysTranslate() local
178 if (prefs_.IsLanguagePairWhitelisted(original_lang, target_lang)) in ToggleAlwaysTranslate()
179 prefs_.RemoveLanguagePairFromWhitelist(original_lang, target_lang); in ToggleAlwaysTranslate()
181 prefs_.WhitelistLanguagePair(original_lang, target_lang); in ToggleAlwaysTranslate()
185 const std::string& original_lang = GetOriginalLanguageCode(); in AlwaysTranslatePageLanguage() local
187 DCHECK(!prefs_.IsLanguagePairWhitelisted(original_lang, target_lang)); in AlwaysTranslatePageLanguage()
[all …]
Dtranslate_tab_helper.cc51 const std::string& original_lang, in OnPageTranslated() argument
56 PageTranslatedDetails details(original_lang, translated_lang, error_type); in OnPageTranslated()
Dtranslate_tab_helper.h30 const std::string& original_lang,
/external/chromium/chrome/browser/tab_contents/
Drender_view_context_menu.cc911 std::string original_lang = in IsCommandIdEnabled() local
921 !original_lang.empty() && // Did we receive the page language yet? in IsCommandIdEnabled()
925 (original_lang == chrome::kUnknownLanguageCode || in IsCommandIdEnabled()
926 TranslateManager::IsSupportedLanguage(original_lang)) && in IsCommandIdEnabled()
1365 std::string original_lang = helper->language_state().original_language(); in ExecuteCommand() local
1371 prefs.RemoveLanguageFromBlacklist(original_lang); in ExecuteCommand()
1374 source_tab_contents_, original_lang, target_lang); in ExecuteCommand()
Dtab_contents.h819 const std::string& original_lang,