summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/infobars/infobar_container.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/infobars/infobar_container.h')
-rw-r--r--chrome/browser/ui/views/infobars/infobar_container.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/ui/views/infobars/infobar_container.h b/chrome/browser/ui/views/infobars/infobar_container.h
index 2ed3fcc..0c0a129 100644
--- a/chrome/browser/ui/views/infobars/infobar_container.h
+++ b/chrome/browser/ui/views/infobars/infobar_container.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
+#include "third_party/skia/include/core/SkColor.h"
class InfoBar;
class InfoBarDelegate;
@@ -27,6 +28,9 @@ class InfoBarContainer : public NotificationObserver {
public:
class Delegate {
public:
+ // The separator color may vary depending on where the container is hosted.
+ virtual SkColor GetInfoBarSeparatorColor() const = 0;
+
// The delegate is notified each time the infobar container changes height.
virtual void InfoBarContainerHeightChanged(bool is_animating) = 0;
@@ -56,9 +60,6 @@ class InfoBarContainer : public NotificationObserver {
// e.g. re-layout.
void OnInfoBarHeightChanged(bool is_animating);
- // Passthrough to the delegate function of the same name.
- bool DrawInfoBarArrows(int* x) const;
-
// Remove the specified InfoBarDelegate from the selected TabContents. This
// will notify us back and cause us to close the InfoBar. This is called from
// the InfoBar's close button handler.
@@ -69,6 +70,8 @@ class InfoBarContainer : public NotificationObserver {
// hidden.
void RemoveInfoBar(InfoBar* infobar);
+ const Delegate* delegate() const { return delegate_; }
+
protected:
// Subclasses must call this during destruction, so that we can remove
// infobars (which will call the pure virtual functions below) while the