Chromium Code Reviews| 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..0e7b241a0560eace4149d43f01cc0817b5120c3b 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(); |
|
groby-ooo-7-16
2017/05/12 17:46:45
These are both already available via TranslatePref
Marti Wong
2017/05/14 04:30:47
Sorry. These 2 lines should be removed and I forgo
|
| + 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(); |
| @@ -168,8 +171,9 @@ class TranslateInfoBarDelegate : public infobars::InfoBarDelegate { |
| bool ShouldShowAlwaysTranslateShortcut(); |
| // Called by translate compact infobar. This check whether we should |
| - // automatically trigger "Always Translate". |
| + // automatically trigger "Always Translate" or "Never Translate". |
| bool ShouldAutoAlwaysTranslate(); |
| + bool ShouldAutoNeverTranslate(); |
| #if defined(OS_IOS) |
| // Shows the Infobar offering to never translate the language or the site. |
| @@ -237,6 +241,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); |
| }; |