Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Unified Diff: chrome/browser/ui/views/notifications/balloon_view_views.cc

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/notifications/balloon_view_views.cc
diff --git a/chrome/browser/ui/views/notifications/balloon_view_views.cc b/chrome/browser/ui/views/notifications/balloon_view_views.cc
index f19c3574ca1f5466fe36f22b91d5cc31c5c4b352..310b70fc74bf5e1faded1896d021336ac3709fd1 100644
--- a/chrome/browser/ui/views/notifications/balloon_view_views.cc
+++ b/chrome/browser/ui/views/notifications/balloon_view_views.cc
@@ -233,7 +233,7 @@ void BalloonViewImpl::RepositionToBalloon() {
anim_frame_end_ = gfx::Rect(
balloon_->GetPosition().x(), balloon_->GetPosition().y(),
GetTotalWidth(), GetTotalHeight());
- anim_frame_start_ = frame_container_->GetClientAreaScreenBounds();
+ anim_frame_start_ = frame_container_->GetClientAreaBoundsInScreen();
animation_.reset(new ui::SlideAnimation(this));
animation_->Show();
}
@@ -500,7 +500,7 @@ gfx::Rect BalloonViewImpl::GetContentsRectangle() const {
gfx::Size content_size = balloon_->content_size();
gfx::Point offset = GetContentsOffset();
- gfx::Rect frame_rect = frame_container_->GetWindowScreenBounds();
+ gfx::Rect frame_rect = frame_container_->GetWindowBoundsInScreen();
return gfx::Rect(frame_rect.x() + offset.x(),
frame_rect.y() + GetShelfHeight() + offset.y(),
content_size.width(),
« no previous file with comments | « chrome/browser/ui/views/hung_renderer_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698