Home
last modified time | relevance | path

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

/external/chromium/chrome/browser/translate/
Dtranslate_manager.cc148 TranslateManager::supported_languages_(base::LINKER_INITIALIZED);
150 TranslateManager::~TranslateManager() { in ~TranslateManager()
154 TranslateManager* TranslateManager::GetInstance() { in GetInstance()
155 return Singleton<TranslateManager>::get(); in GetInstance()
159 bool TranslateManager::IsTranslatableURL(const GURL& url) { in IsTranslatableURL()
171 void TranslateManager::GetSupportedLanguages( in GetSupportedLanguages()
179 std::string TranslateManager::GetLanguageCode( in GetLanguageCode()
189 bool TranslateManager::IsSupportedLanguage(const std::string& page_language) { in IsSupportedLanguage()
198 void TranslateManager::Observe(NotificationType type, in Observe()
239 &TranslateManager::InitiateTranslationPosted, in Observe()
[all …]
Dtranslate_manager.h34 class TranslateManager : public NotificationObserver,
38 static TranslateManager* GetInstance();
40 virtual ~TranslateManager();
98 TranslateManager();
101 friend struct DefaultSingletonTraits<TranslateManager>;
166 ScopedRunnableMethodFactory<TranslateManager> method_factory_;
186 DISALLOW_COPY_AND_ASSIGN(TranslateManager);
Dtranslate_infobar_delegate.cc39 !TranslateManager::IsSupportedLanguage(original_language)) || in CreateDelegate()
40 !TranslateManager::IsSupportedLanguage(target_language)) in CreateDelegate()
107 TranslateManager::GetInstance()->TranslatePage(tab_contents_, in Translate()
113 TranslateManager::GetInstance()->RevertTranslation(tab_contents_); in RevertTranslation()
118 TranslateManager::GetInstance()->ReportLanguageDetectionError(tab_contents_); in ReportLanguageDetectionError()
250 TranslateManager::GetInstance()->TranslatePage(tab_contents_, in MessageInfoBarButtonPressed()
325 TranslateManager::GetSupportedLanguages(&language_codes); in TranslateInfoBarDelegate()
Dtranslate_manager_browsertest.cc122 TranslateManager::GetInstance()->set_translate_script_expiration_delay(0); in ExpireTranslateScriptImmediately()
155 TranslateManager::GetInstance()->ClearTranslateScript(); in SetUp()
156 TranslateManager::GetInstance()-> in SetUp()
/external/chromium/chrome/browser/tab_contents/
Drender_view_context_menu.cc651 locale = TranslateManager::GetLanguageCode(locale); in AppendPageItems()
914 target_lang = TranslateManager::GetLanguageCode(target_lang); in IsCommandIdEnabled()
926 TranslateManager::IsSupportedLanguage(original_lang)) && in IsCommandIdEnabled()
929 TranslateManager::IsTranslatableURL(params_.page_url); in IsCommandIdEnabled()
1367 target_lang = TranslateManager::GetLanguageCode(target_lang); in ExecuteCommand()
1373 TranslateManager::GetInstance()->TranslatePage( in ExecuteCommand()
/external/chromium/chrome/browser/
Dbrowser_main.cc1547 TranslateManager::GetInstance(); in BrowserMain()