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

Unified Diff: ash/wm/workspace/workspace_window_resizer.cc

Issue 10836157: Fix DCHECK error when using multi window resizer on the 2nd display that is place on the left side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_window_resizer.cc
diff --git a/ash/wm/workspace/workspace_window_resizer.cc b/ash/wm/workspace/workspace_window_resizer.cc
index 57c70f68d569a3b29c20b19a00c153b20f1c082f..e2fcae02e48c543b18dabf99b2e66bf10744cbc7 100644
--- a/ash/wm/workspace/workspace_window_resizer.cc
+++ b/ash/wm/workspace/workspace_window_resizer.cc
@@ -283,8 +283,10 @@ gfx::Rect WorkspaceWindowResizer::GetFinalBounds(
void WorkspaceWindowResizer::LayoutAttachedWindows(
const gfx::Rect& bounds,
int grid_size) {
- gfx::Rect work_area(
- gfx::Screen::GetDisplayNearestWindow(window()).work_area());
+ // |bounds| and |work_area| are in |window()->parent()|'s coordinates.
+ gfx::Rect work_area(ScreenAsh::ConvertRectFromScreen(
+ window()->parent(),
+ gfx::Screen::GetDisplayNearestWindow(window()).work_area()));
oshima 2012/08/09 00:59:35 Can you use ScreenAsh::GetDisplayWorkAreaInParent(
mazda 2012/08/09 01:07:19 Done.
std::vector<int> sizes;
CalculateAttachedSizes(
PrimaryAxisSize(details_.initial_bounds.size()),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698