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

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: Rebase to ToT 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
« no previous file with comments | « ash/wm/window_manager_unittest.cc ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('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 (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
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
OLDNEW
« no previous file with comments | « ash/wm/window_manager_unittest.cc ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698