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

Unified Diff: components/translate/core/browser/translate_infobar_delegate.h

Issue 2874393002: Automatically trigger Never-Translate in new translation infobar (Closed)
Patch Set: sync and merge Created 3 years, 7 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: components/translate/core/browser/translate_infobar_delegate.h
diff --git a/components/translate/core/browser/translate_infobar_delegate.h b/components/translate/core/browser/translate_infobar_delegate.h
index c0cdc37448c4579e8352a65fc8c998bebfef92b9..eee41f3b00427b1dd4859be8698685601c2ee6d4 100644
--- a/components/translate/core/browser/translate_infobar_delegate.h
+++ b/components/translate/core/browser/translate_infobar_delegate.h
@@ -152,6 +152,9 @@ class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
void AlwaysTranslatePageLanguage();
void NeverTranslatePageLanguage();
+ int GetTranslationAcceptedCount();
+ int GetTranslationDeniedCount();
+
// The following methods are called by the infobar that displays the status
// while translating and also the one displaying the error message.
base::string16 GetMessageInfoBarText();
@@ -167,10 +170,6 @@ class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
bool ShouldShowNeverTranslateShortcut();
bool ShouldShowAlwaysTranslateShortcut();
- // Called by translate compact infobar. This check whether we should
- // automatically trigger "Always Translate".
- bool ShouldAutoAlwaysTranslate();
-
#if defined(OS_IOS)
// Shows the Infobar offering to never translate the language or the site.
void ShowNeverTranslateInfobar();
@@ -237,6 +236,7 @@ class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
// Whether the translation was triggered via a menu click vs automatically
// (due to language detection, preferences...)
bool triggered_from_menu_;
+
DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698