summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/notifications
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 21:02:01 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 21:02:01 +0000
commit099c6c2f4118361105354eec5b36c720a3c20a00 (patch)
tree9fc8bc284354598e2e4364c0ead4cc05114040e7 /chrome/browser/views/notifications
parented7b2980a035eea169e02ab4c7729b0c8056cf4a (diff)
downloadchromium_src-099c6c2f4118361105354eec5b36c720a3c20a00.zip
chromium_src-099c6c2f4118361105354eec5b36c720a3c20a00.tar.gz
chromium_src-099c6c2f4118361105354eec5b36c720a3c20a00.tar.bz2
position the balloons after closing in a way that will keep the next one's close button under your mouse; don't reposition them to the normal place until the mouse has left the balloon collection
BUG=47333 TEST=make notifications of different sizes, try to close them all; the X should remain under your mouse Review URL: http://codereview.chromium.org/2915003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/notifications')
-rw-r--r--chrome/browser/views/notifications/balloon_view.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/views/notifications/balloon_view.cc b/chrome/browser/views/notifications/balloon_view.cc
index 68c6570..ec9aa95 100644
--- a/chrome/browser/views/notifications/balloon_view.cc
+++ b/chrome/browser/views/notifications/balloon_view.cc
@@ -186,7 +186,7 @@ void BalloonViewImpl::RepositionToBalloon() {
if (!kAnimateEnabled) {
frame_container_->SetBounds(
- gfx::Rect(balloon_->position().x(), balloon_->position().y(),
+ gfx::Rect(balloon_->GetPosition().x(), balloon_->GetPosition().y(),
GetTotalWidth(), GetTotalHeight()));
gfx::Rect contents_rect = GetContentsRectangle();
html_container_->SetBounds(contents_rect);
@@ -198,7 +198,7 @@ void BalloonViewImpl::RepositionToBalloon() {
}
anim_frame_end_ = gfx::Rect(
- balloon_->position().x(), balloon_->position().y(),
+ balloon_->GetPosition().x(), balloon_->GetPosition().y(),
GetTotalWidth(), GetTotalHeight());
frame_container_->GetBounds(&anim_frame_start_, false);
animation_.reset(new SlideAnimation(this));
@@ -274,7 +274,7 @@ void BalloonViewImpl::Show(Balloon* balloon) {
balloon_ = balloon;
- SetBounds(balloon_->position().x(), balloon_->position().y(),
+ SetBounds(balloon_->GetPosition().x(), balloon_->GetPosition().y(),
GetTotalWidth(), GetTotalHeight());
source_label_ = new views::Label(source_label_text);