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

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

Issue 190063006: Infobar Componentization Proof of Concept (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor fixes 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_infobar_delegate.h
diff --git a/chrome/browser/translate/translate_infobar_delegate.h b/chrome/browser/translate/translate_infobar_delegate.h
index 1b919cac3e87d0f9646e6cead9f47f715cd7989c..3421b29267bfbfd33ed1a8e8bb06734dbfd1b868 100644
--- a/chrome/browser/translate/translate_infobar_delegate.h
+++ b/chrome/browser/translate/translate_infobar_delegate.h
@@ -106,6 +106,8 @@ class TranslateInfoBarDelegate : public InfoBarDelegate {
return background_animation_;
}
+ content::WebContents* web_contents() { return web_contents_; }
+
virtual void Translate();
virtual void RevertTranslation();
void ReportLanguageDetectionError();
@@ -186,12 +188,14 @@ class TranslateInfoBarDelegate : public InfoBarDelegate {
virtual void InfoBarDismissed() OVERRIDE;
virtual int GetIconID() const OVERRIDE;
virtual InfoBarDelegate::Type GetInfoBarType() const OVERRIDE;
- virtual bool ShouldExpire(
- const content::LoadCommittedDetails& details) const OVERRIDE;
+ virtual bool ShouldExpire(const NavigationDetails& details) const OVERRIDE;
virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() OVERRIDE;
+ virtual void CleanUp() OVERRIDE;
TranslateTabHelper::TranslateStep step_;
+ content::WebContents* web_contents_;
+
// The type of fading animation if any that should be used when showing this
// infobar.
BackgroundAnimationType background_animation_;

Powered by Google App Engine
This is Rietveld 408576698