Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: chrome/browser/translate/translate_tab_helper.h

Issue 203223002: Translate bubble for Mac OS X (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: groby's review Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/translate/translate_tab_helper.h
diff --git a/chrome/browser/translate/translate_tab_helper.h b/chrome/browser/translate/translate_tab_helper.h
index 146ecfd952a1e723e1f23ec6fa757823d91b9fa4..f6c03d43fde2520928cb4ec5d681fce8f1b231d4 100644
--- a/chrome/browser/translate/translate_tab_helper.h
+++ b/chrome/browser/translate/translate_tab_helper.h
@@ -53,6 +53,11 @@ class TranslateTabHelper
static TranslateManager* GetManagerFromWebContents(
content::WebContents* web_contents);
+ // Gets |source| and |target| language for translation.
+ static void GetTranslateLanguages(content::WebContents* web_contents,
+ std::string* source,
+ std::string* target);
+
// Gets the associated TranslateManager.
TranslateManager* GetTranslateManager();

Powered by Google App Engine
This is Rietveld 408576698