From fb53e5d2dad6356043a2e202578eea074995f72a Mon Sep 17 00:00:00 2001 From: "kuan@chromium.org" Date: Wed, 27 Jan 2010 19:04:55 +0000 Subject: implement infobars and delegates placeholders for translate feature. Review URL: http://codereview.chromium.org/546132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37281 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_contents/infobar_delegate.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'chrome/browser/tab_contents/infobar_delegate.h') diff --git a/chrome/browser/tab_contents/infobar_delegate.h b/chrome/browser/tab_contents/infobar_delegate.h index d6a1899..1ec6506 100644 --- a/chrome/browser/tab_contents/infobar_delegate.h +++ b/chrome/browser/tab_contents/infobar_delegate.h @@ -13,6 +13,7 @@ class AlertInfoBarDelegate; class ConfirmInfoBarDelegate; +class TranslateInfoBarDelegate; class InfoBar; class LinkInfoBarDelegate; class SkBitmap; @@ -47,7 +48,8 @@ class InfoBarDelegate { enum Type { INFO_TYPE, WARNING_TYPE, - ERROR_TYPE + ERROR_TYPE, + PAGE_ACTION_TYPE }; // Returns true if the supplied |delegate| is equal to this one. Equality is @@ -102,6 +104,12 @@ class InfoBarDelegate { return NULL; } + // Returns a pointer to the TranslateInfoBarDelegate interface, if + // implemented. + virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() { + return NULL; + } + // Returns the type of the infobar. The type determines the appearance (such // as background color) of the infobar. virtual Type GetInfoBarType() { -- cgit v1.1