summaryrefslogtreecommitdiffstats
path: root/chrome/browser/infobars
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-09 20:45:51 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-09 20:45:51 +0000
commit5fcfffba642d7bb4cdaeaa87af08ab9793db1f71 (patch)
tree8b3cd9e4c14e78afd7bf75895644f40c7425afc5 /chrome/browser/infobars
parentcffbe21f526d3bdf5104a8fac5f4365812841c39 (diff)
downloadchromium_src-5fcfffba642d7bb4cdaeaa87af08ab9793db1f71.zip
chromium_src-5fcfffba642d7bb4cdaeaa87af08ab9793db1f71.tar.gz
chromium_src-5fcfffba642d7bb4cdaeaa87af08ab9793db1f71.tar.bz2
OffsetY() is only used by InfoBarView. Move it there.
BUG=none TEST=none R=sky@chromium.org Review URL: https://codereview.chromium.org/100753004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/infobars')
-rw-r--r--chrome/browser/infobars/infobar.cc6
-rw-r--r--chrome/browser/infobars/infobar.h5
2 files changed, 0 insertions, 11 deletions
diff --git a/chrome/browser/infobars/infobar.cc b/chrome/browser/infobars/infobar.cc
index ab61ad1..072a009 100644
--- a/chrome/browser/infobars/infobar.cc
+++ b/chrome/browser/infobars/infobar.cc
@@ -114,12 +114,6 @@ void InfoBar::AnimationProgressed(const gfx::Animation* animation) {
RecalculateHeights(false);
}
-int InfoBar::OffsetY(const gfx::Size& prefsize) const {
- return arrow_height_ +
- std::max((bar_target_height_ - prefsize.height()) / 2, 0) -
- (bar_target_height_ - bar_height_);
-}
-
void InfoBar::AnimationEnded(const gfx::Animation* animation) {
// When the animation ends, we must ensure the container is notified even if
// the heights haven't changed, lest it never get an "animation finished"
diff --git a/chrome/browser/infobars/infobar.h b/chrome/browser/infobars/infobar.h
index 2355688..73d3ab47 100644
--- a/chrome/browser/infobars/infobar.h
+++ b/chrome/browser/infobars/infobar.h
@@ -100,11 +100,6 @@ class InfoBar : public gfx::AnimationDelegate {
// gfx::AnimationDelegate:
virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
- // Given a control with size |prefsize|, returns the centered y position
- // within us, taking into account animation so the control "slides in" (or
- // out) as we animate open and closed.
- int OffsetY(const gfx::Size& prefsize) const;
-
const InfoBarContainer* container() const { return container_; }
InfoBarContainer* container() { return container_; }
gfx::SlideAnimation* animation() { return &animation_; }