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

Unified Diff: ash/system/tray/system_tray.cc

Issue 9960042: Refactor screen/monitor so that gfx::Screen returns monitor object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 8 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: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 6fa88820de3461d2179f6aefcb21ac0f72660102..65477688faf6952c51e7441b8d98d027dfb13235 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -329,7 +329,7 @@ class SystemTrayBubble : public views::BubbleDelegateView {
kPaddingFromBottomOfScreen);
return rect;
}
- gfx::Rect rect = gfx::Screen::GetPrimaryMonitorBounds();
+ gfx::Rect rect = gfx::Screen::GetPrimaryMonitor().bounds();
return gfx::Rect(base::i18n::IsRTL() ? kPaddingFromRightEdgeOfScreen :
rect.width() - kPaddingFromRightEdgeOfScreen,
rect.height() - kPaddingFromBottomOfScreen,
« no previous file with comments | « ash/shell.cc ('k') | ash/tooltips/tooltip_controller.cc » ('j') | ui/aura/monitor_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698