OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/workspace/workspace_window_resizer.h" | 5 #include "ash/wm/workspace/workspace_window_resizer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "ash/display/display_controller.h" | 12 #include "ash/display/display_controller.h" |
13 #include "ash/screen_ash.h" | 13 #include "ash/screen_ash.h" |
14 #include "ash/shell.h" | 14 #include "ash/shell.h" |
15 #include "ash/shell_window_ids.h" | 15 #include "ash/shell_window_ids.h" |
16 #include "ash/wm/coordinate_conversion.h" | 16 #include "ash/wm/coordinate_conversion.h" |
17 #include "ash/wm/cursor_manager.h" | |
18 #include "ash/wm/default_window_resizer.h" | 17 #include "ash/wm/default_window_resizer.h" |
19 #include "ash/wm/drag_window_resizer.h" | 18 #include "ash/wm/drag_window_resizer.h" |
20 #include "ash/wm/panel_window_resizer.h" | 19 #include "ash/wm/panel_window_resizer.h" |
21 #include "ash/wm/property_util.h" | 20 #include "ash/wm/property_util.h" |
22 #include "ash/wm/window_util.h" | 21 #include "ash/wm/window_util.h" |
23 #include "ash/wm/workspace/phantom_window_controller.h" | 22 #include "ash/wm/workspace/phantom_window_controller.h" |
24 #include "ash/wm/workspace/snap_sizer.h" | 23 #include "ash/wm/workspace/snap_sizer.h" |
25 #include "ui/aura/client/aura_constants.h" | 24 #include "ui/aura/client/aura_constants.h" |
26 #include "ui/aura/client/window_types.h" | 25 #include "ui/aura/client/window_types.h" |
27 #include "ui/aura/root_window.h" | 26 #include "ui/aura/root_window.h" |
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 gfx::Rect area(ScreenAsh::GetDisplayBoundsInParent(window())); | 826 gfx::Rect area(ScreenAsh::GetDisplayBoundsInParent(window())); |
828 if (location.x() <= area.x()) | 827 if (location.x() <= area.x()) |
829 return SNAP_LEFT_EDGE; | 828 return SNAP_LEFT_EDGE; |
830 if (location.x() >= area.right() - 1) | 829 if (location.x() >= area.right() - 1) |
831 return SNAP_RIGHT_EDGE; | 830 return SNAP_RIGHT_EDGE; |
832 return SNAP_NONE; | 831 return SNAP_NONE; |
833 } | 832 } |
834 | 833 |
835 } // namespace internal | 834 } // namespace internal |
836 } // namespace ash | 835 } // namespace ash |
OLD | NEW |