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

Side by Side Diff: ash/wm/workspace/workspace_window_resizer.cc

Issue 12263050: Rework ash::CursorManager into a corewm object, to share code with desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: General patch cleanup. Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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/property_util.h" 19 #include "ash/wm/property_util.h"
21 #include "ash/wm/window_util.h" 20 #include "ash/wm/window_util.h"
22 #include "ash/wm/workspace/phantom_window_controller.h" 21 #include "ash/wm/workspace/phantom_window_controller.h"
23 #include "ash/wm/workspace/snap_sizer.h" 22 #include "ash/wm/workspace/snap_sizer.h"
24 #include "ui/aura/client/aura_constants.h" 23 #include "ui/aura/client/aura_constants.h"
25 #include "ui/aura/root_window.h" 24 #include "ui/aura/root_window.h"
26 #include "ui/aura/window.h" 25 #include "ui/aura/window.h"
27 #include "ui/aura/window_delegate.h" 26 #include "ui/aura/window_delegate.h"
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 gfx::Rect area(ScreenAsh::GetDisplayBoundsInParent(window())); 821 gfx::Rect area(ScreenAsh::GetDisplayBoundsInParent(window()));
823 if (location.x() <= area.x()) 822 if (location.x() <= area.x())
824 return SNAP_LEFT_EDGE; 823 return SNAP_LEFT_EDGE;
825 if (location.x() >= area.right() - 1) 824 if (location.x() >= area.right() - 1)
826 return SNAP_RIGHT_EDGE; 825 return SNAP_RIGHT_EDGE;
827 return SNAP_NONE; 826 return SNAP_NONE;
828 } 827 }
829 828
830 } // namespace internal 829 } // namespace internal
831 } // namespace ash 830 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698