summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 22:57:22 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-28 22:57:22 +0000
commit7a691a96215f24415dc7e45dd437ff3371ea1225 (patch)
treeb3edbdb8b775f072d9086a636617e88a0352160e /chrome/browser/tab_contents
parente7a1f04a389e923439b8f57aa5e02bd392fb1491 (diff)
downloadchromium_src-7a691a96215f24415dc7e45dd437ff3371ea1225.zip
chromium_src-7a691a96215f24415dc7e45dd437ff3371ea1225.tar.gz
chromium_src-7a691a96215f24415dc7e45dd437ff3371ea1225.tar.bz2
Only allow one theme installation infobar to be shown at a time.
BUG=None TEST=Install two themes without closing the infobar - make sure only one infobar is visible. Review URL: http://codereview.chromium.org/160296 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21910 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/infobar_delegate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/infobar_delegate.h b/chrome/browser/tab_contents/infobar_delegate.h
index f8ce253..569ad1d 100644
--- a/chrome/browser/tab_contents/infobar_delegate.h
+++ b/chrome/browser/tab_contents/infobar_delegate.h
@@ -16,6 +16,7 @@ class AlertInfoBarDelegate;
class ConfirmInfoBarDelegate;
class InfoBar;
class LinkInfoBarDelegate;
+class ThemePreviewInfobarDelegate;
// An interface implemented by objects wishing to control an InfoBar.
// Implementing this interface is not sufficient to use an InfoBar, since it
@@ -95,6 +96,12 @@ class InfoBarDelegate {
return NULL;
}
+ // Returns a pointer to the ThemePreviewInfobarDelegate interface, if
+ // implemented.
+ virtual ThemePreviewInfobarDelegate* AsThemePreviewInfobarDelegate() {
+ return NULL;
+ }
+
// Returns the type of the infobar. The type determines the appearance (such
// as background color) of the infobar.
virtual Type GetInfoBarType() {