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

Unified Diff: ash/app_list/app_list_view.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/app_list/app_list.cc ('k') | ash/monitor/monitor_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/app_list/app_list_view.cc
diff --git a/ash/app_list/app_list_view.cc b/ash/app_list/app_list_view.cc
index 28b8110c0d710d624f6b7b4f5f5e06463ef8fc91..84f68f5878c73b5b31884a26c5d2400cb82a0bff 100644
--- a/ash/app_list/app_list_view.cc
+++ b/ash/app_list/app_list_view.cc
@@ -124,8 +124,8 @@ void AppListView::Layout() {
// Gets work area rect, which is in screen coordinates.
gfx::Rect workarea = Shell::GetInstance()->shelf()->IsVisible() ?
ScreenAsh::GetUnmaximizedWorkAreaBounds(GetWidget()->GetNativeView()) :
- gfx::Screen::GetMonitorWorkAreaNearestWindow(
- GetWidget()->GetNativeView());
+ gfx::Screen::GetMonitorNearestWindow(
+ GetWidget()->GetNativeView()).work_area();
// Converts |workarea| into view's coordinates.
gfx::Point origin(workarea.origin());
« no previous file with comments | « ash/app_list/app_list.cc ('k') | ash/monitor/monitor_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698