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

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: sync 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
« no previous file with comments | « ash/shell.cc ('k') | ash/tooltips/tooltip_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 09a47bf51853d432cc19522b8cbca6acbb641b4d..1ee493b103a6dd266ba9ea4e2a5be0796b1b595b 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698