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

Side by Side Diff: ash/common/wm/window_positioner.cc

Issue 2030593002: Renames ash/wm/common into ash/common/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « ash/common/wm/window_positioner.h ('k') | ash/common/wm/window_positioning_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/common/window_positioner.h" 5 #include "ash/common/wm/window_positioner.h"
6 6
7 #include "ash/wm/common/window_positioning_utils.h" 7 #include "ash/common/wm/window_positioning_utils.h"
8 #include "ash/wm/common/window_state.h" 8 #include "ash/common/wm/window_state.h"
9 #include "ash/wm/common/wm_globals.h" 9 #include "ash/common/wm/wm_globals.h"
10 #include "ash/wm/common/wm_screen_util.h" 10 #include "ash/common/wm/wm_screen_util.h"
11 #include "ash/wm/common/wm_window.h" 11 #include "ash/common/wm/wm_window.h"
12 #include "ui/compositor/layer.h" 12 #include "ui/compositor/layer.h"
13 #include "ui/display/display.h" 13 #include "ui/display/display.h"
14 #include "ui/display/screen.h" 14 #include "ui/display/screen.h"
15 #include "ui/gfx/geometry/insets.h" 15 #include "ui/gfx/geometry/insets.h"
16 16
17 namespace ash { 17 namespace ash {
18 18
19 const int WindowPositioner::kMinimumWindowOffset = 32; 19 const int WindowPositioner::kMinimumWindowOffset = 32;
20 20
21 // The number of pixels which are kept free top, left and right when a window 21 // The number of pixels which are kept free top, left and right when a window
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 // If the alignment was pushing the window out of the screen, we ignore the 555 // If the alignment was pushing the window out of the screen, we ignore the
556 // alignment for that call. 556 // alignment for that call.
557 if (abs(pos.right() - work_area.right()) < grid) 557 if (abs(pos.right() - work_area.right()) < grid)
558 x = work_area.right() - w; 558 x = work_area.right() - w;
559 if (abs(pos.bottom() - work_area.bottom()) < grid) 559 if (abs(pos.bottom() - work_area.bottom()) < grid)
560 y = work_area.bottom() - h; 560 y = work_area.bottom() - h;
561 return gfx::Rect(x, y, w, h); 561 return gfx::Rect(x, y, w, h);
562 } 562 }
563 563
564 } // namespace ash 564 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/window_positioner.h ('k') | ash/common/wm/window_positioning_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698