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

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

Issue 2025413002: Moves RootWindowControllerCommon and LayoutManager to common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_root_window_controller_common
Patch Set: merge 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/workspace/phantom_window_controller.cc ('k') | ash/container_delegate_aura.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/common/wm/workspace/workspace_window_resizer.h" 5 #include "ash/common/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/common/shell_window_ids.h"
12 #include "ash/common/wm/default_window_resizer.h" 13 #include "ash/common/wm/default_window_resizer.h"
13 #include "ash/common/wm/dock/docked_window_layout_manager.h" 14 #include "ash/common/wm/dock/docked_window_layout_manager.h"
14 #include "ash/common/wm/dock/docked_window_resizer.h" 15 #include "ash/common/wm/dock/docked_window_resizer.h"
15 #include "ash/common/wm/panels/panel_window_resizer.h" 16 #include "ash/common/wm/panels/panel_window_resizer.h"
16 #include "ash/common/wm/window_positioning_utils.h" 17 #include "ash/common/wm/window_positioning_utils.h"
17 #include "ash/common/wm/window_state.h" 18 #include "ash/common/wm/window_state.h"
18 #include "ash/common/wm/wm_event.h" 19 #include "ash/common/wm/wm_event.h"
19 #include "ash/common/wm/wm_globals.h" 20 #include "ash/common/wm/wm_globals.h"
20 #include "ash/common/wm/wm_lookup.h" 21 #include "ash/common/wm/wm_lookup.h"
21 #include "ash/common/wm/wm_root_window_controller.h" 22 #include "ash/common/wm/wm_root_window_controller.h"
22 #include "ash/common/wm/wm_screen_util.h" 23 #include "ash/common/wm/wm_screen_util.h"
23 #include "ash/common/wm/wm_shell_window_ids.h"
24 #include "ash/common/wm/wm_user_metrics_action.h" 24 #include "ash/common/wm/wm_user_metrics_action.h"
25 #include "ash/common/wm/wm_window.h" 25 #include "ash/common/wm/wm_window.h"
26 #include "ash/common/wm/workspace/phantom_window_controller.h" 26 #include "ash/common/wm/workspace/phantom_window_controller.h"
27 #include "ash/common/wm/workspace/two_step_edge_cycler.h" 27 #include "ash/common/wm/workspace/two_step_edge_cycler.h"
28 #include "base/memory/ptr_util.h" 28 #include "base/memory/ptr_util.h"
29 #include "base/memory/weak_ptr.h" 29 #include "base/memory/weak_ptr.h"
30 #include "ui/base/hit_test.h" 30 #include "ui/base/hit_test.h"
31 #include "ui/compositor/layer.h" 31 #include "ui/compositor/layer.h"
32 #include "ui/display/display.h" 32 #include "ui/display/display.h"
33 #include "ui/display/screen.h" 33 #include "ui/display/screen.h"
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 DCHECK(snapped_type == wm::WINDOW_STATE_TYPE_LEFT_SNAPPED || 1016 DCHECK(snapped_type == wm::WINDOW_STATE_TYPE_LEFT_SNAPPED ||
1017 snapped_type == wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED); 1017 snapped_type == wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED);
1018 gfx::Rect snapped_bounds = wm::GetDisplayWorkAreaBoundsInParent(GetTarget()); 1018 gfx::Rect snapped_bounds = wm::GetDisplayWorkAreaBoundsInParent(GetTarget());
1019 if (snapped_type == wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED) 1019 if (snapped_type == wm::WINDOW_STATE_TYPE_RIGHT_SNAPPED)
1020 snapped_bounds.set_x(snapped_bounds.right() - bounds_in_parent.width()); 1020 snapped_bounds.set_x(snapped_bounds.right() - bounds_in_parent.width());
1021 snapped_bounds.set_width(bounds_in_parent.width()); 1021 snapped_bounds.set_width(bounds_in_parent.width());
1022 return bounds_in_parent == snapped_bounds; 1022 return bounds_in_parent == snapped_bounds;
1023 } 1023 }
1024 1024
1025 } // namespace ash 1025 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/workspace/phantom_window_controller.cc ('k') | ash/container_delegate_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698