summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/infobar_delegate.h
diff options
context:
space:
mode:
authorkuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-27 19:04:55 +0000
committerkuan@chromium.org <kuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-27 19:04:55 +0000
commitfb53e5d2dad6356043a2e202578eea074995f72a (patch)
treefcb3c2b4243c3fb8364e077ea650a23847214eef /chrome/browser/tab_contents/infobar_delegate.h
parent82011cee978aad75254211c2b6ed187350f14dcb (diff)
downloadchromium_src-fb53e5d2dad6356043a2e202578eea074995f72a.zip
chromium_src-fb53e5d2dad6356043a2e202578eea074995f72a.tar.gz
chromium_src-fb53e5d2dad6356043a2e202578eea074995f72a.tar.bz2
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
Diffstat (limited to 'chrome/browser/tab_contents/infobar_delegate.h')
-rw-r--r--chrome/browser/tab_contents/infobar_delegate.h10
1 files changed, 9 insertions, 1 deletions
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() {