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

Unified Diff: ash/wm/workspace/snap_sizer.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/wm/workspace/maximized_workspace.cc ('k') | ash/wm/workspace/workspace_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/snap_sizer.cc
diff --git a/ash/wm/workspace/snap_sizer.cc b/ash/wm/workspace/snap_sizer.cc
index 9b064e7bf1fdf08844999765fa30fb163e9d54d2..158fa3a599a02ec7b860686a3d3d03c326850368 100644
--- a/ash/wm/workspace/snap_sizer.cc
+++ b/ash/wm/workspace/snap_sizer.cc
@@ -114,7 +114,7 @@ gfx::Rect SnapSizer::GetTargetBounds() const {
bool SnapSizer::AlongEdge(int x) const {
// TODO: need to support multi-monitor.
- gfx::Rect area(gfx::Screen::GetMonitorAreaNearestWindow(window_));
+ gfx::Rect area(gfx::Screen::GetMonitorNearestWindow(window_).bounds());
return (x <= area.x()) || (x >= area.right() - 1);
}
« no previous file with comments | « ash/wm/workspace/maximized_workspace.cc ('k') | ash/wm/workspace/workspace_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698