summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/infobars/infobars.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/infobars/infobars.h')
-rw-r--r--chrome/browser/views/infobars/infobars.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/views/infobars/infobars.h b/chrome/browser/views/infobars/infobars.h
index 9870ad4..aff4928 100644
--- a/chrome/browser/views/infobars/infobars.h
+++ b/chrome/browser/views/infobars/infobars.h
@@ -56,6 +56,10 @@ class InfoBar : public views::View,
// is (due to animation).
static const double kTargetHeight;
+ static const int kHorizontalPadding;
+ static const int kIconLabelSpacing;
+ static const int kButtonSpacing;
+
// Overridden from views::View:
virtual gfx::Size GetPreferredSize();
virtual void Layout();
@@ -74,6 +78,16 @@ class InfoBar : public views::View,
// (Will lead to this InfoBar being closed).
void RemoveInfoBar() const;
+ // Returns a centered y-position of a control of height specified in
+ // |prefsize| within the standard InfoBar height. Stable during an animation.
+ int CenterY(const gfx::Size prefsize);
+
+ // Returns a centered y-position of a control of height specified in
+ // |prefsize| within the standard InfoBar height, adjusted according to the
+ // current amount of animation offset the |parent| InfoBar currently has.
+ // Changes during an animation.
+ int OffsetY(views::View* parent, const gfx::Size prefsize);
+
// Overridden from views::ButtonListener:
virtual void ButtonPressed(views::Button* sender, const views::Event& event);