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

Unified Diff: ash/system/tray/system_tray_bubble.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 | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_bubble.cc
diff --git a/ash/system/tray/system_tray_bubble.cc b/ash/system/tray/system_tray_bubble.cc
index 4e383f6d7252a5675e200981d1742fcd5aeef2cf..c45f608ea5ca006229d7e5061beca8f9a6dd2a02 100644
--- a/ash/system/tray/system_tray_bubble.cc
+++ b/ash/system/tray/system_tray_bubble.cc
@@ -351,7 +351,7 @@ gfx::Rect SystemTrayBubble::GetAnchorRect() const {
gfx::Rect rect;
views::Widget* widget = bubble_view()->anchor_widget();
if (widget->IsVisible()) {
- rect = widget->GetWindowScreenBounds();
+ rect = widget->GetWindowBoundsInScreen();
if (anchor_type_ == ANCHOR_TYPE_TRAY) {
if (tray_->shelf_alignment() == SHELF_ALIGNMENT_BOTTOM) {
rect.Inset(
@@ -373,7 +373,7 @@ gfx::Rect SystemTrayBubble::GetAnchorRect() const {
// the anchor can include arrow on left or right, which should
// be deducted out from the anchor rect.
views::View* anchor_view = bubble_view()->anchor_view();
- rect = anchor_view->GetScreenBounds();
+ rect = anchor_view->GetBoundsInScreen();
gfx::Insets insets = anchor_view->GetInsets();
rect.Inset(insets);
}
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/tray/system_tray_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698