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

Unified Diff: ui/views/bubble/bubble_delegate.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
« no previous file with comments | « ui/oak/oak_aura_window_display.cc ('k') | ui/views/controls/button/menu_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_delegate.cc
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc
index e7307b3eef5239debadbe155c017484b21a265d5..564f6f5dbdec3d69374c3ba4977fe0eb47ad15e8 100644
--- a/ui/views/bubble/bubble_delegate.cc
+++ b/ui/views/bubble/bubble_delegate.cc
@@ -233,7 +233,7 @@ void BubbleDelegateView::OnWidgetMoved(Widget* widget) {
}
gfx::Rect BubbleDelegateView::GetAnchorRect() {
- return anchor_view() ? anchor_view()->GetScreenBounds() : gfx::Rect();
+ return anchor_view() ? anchor_view()->GetBoundsInScreen() : gfx::Rect();
}
void BubbleDelegateView::Show() {
@@ -341,7 +341,7 @@ gfx::Rect BubbleDelegateView::GetBubbleBounds() {
#if defined(OS_WIN) && !defined(USE_AURA)
gfx::Rect BubbleDelegateView::GetBubbleClientBounds() const {
gfx::Rect client_bounds(GetBubbleFrameView()->GetBoundsForClientView());
- client_bounds.Offset(border_widget_->GetWindowScreenBounds().origin());
+ client_bounds.Offset(border_widget_->GetWindowBoundsInScreen().origin());
return client_bounds;
}
#endif
« no previous file with comments | « ui/oak/oak_aura_window_display.cc ('k') | ui/views/controls/button/menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698