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

Unified Diff: chrome/browser/tab_contents/language_state.h

Issue 14392011: [Translate] Expose whether the user is within a navigation session as part of the infobar delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/tab_contents/language_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/language_state.h
diff --git a/chrome/browser/tab_contents/language_state.h b/chrome/browser/tab_contents/language_state.h
index 7fc405947bda08a8c58da87d6f7d22382e553a7b..e97e710e4769b312e3c2915fa8e4161a382f7f5c 100644
--- a/chrome/browser/tab_contents/language_state.h
+++ b/chrome/browser/tab_contents/language_state.h
@@ -44,6 +44,9 @@ class LanguageState {
// Returns an empty string if the page should not be auto-translated.
std::string AutoTranslateTo() const;
+ // Returns true if the user is navigating through translated links.
+ bool InTranslateNavigation() const;
+
// Returns true if the current page in the associated tab has been translated.
bool IsPageTranslated() const { return original_lang_ != current_lang_; }
« no previous file with comments | « no previous file | chrome/browser/tab_contents/language_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698