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> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "ash/wm/drag_window_resizer.h" | 23 #include "ash/wm/drag_window_resizer.h" |
24 #include "ash/wm/panels/panel_window_resizer.h" | 24 #include "ash/wm/panels/panel_window_resizer.h" |
25 #include "ash/wm/window_state.h" | 25 #include "ash/wm/window_state.h" |
26 #include "ash/wm/window_util.h" | 26 #include "ash/wm/window_util.h" |
27 #include "ash/wm/workspace/phantom_window_controller.h" | 27 #include "ash/wm/workspace/phantom_window_controller.h" |
28 #include "ash/wm/workspace/snap_sizer.h" | 28 #include "ash/wm/workspace/snap_sizer.h" |
29 #include "base/command_line.h" | 29 #include "base/command_line.h" |
30 #include "base/memory/weak_ptr.h" | 30 #include "base/memory/weak_ptr.h" |
31 #include "ui/aura/client/aura_constants.h" | 31 #include "ui/aura/client/aura_constants.h" |
32 #include "ui/aura/client/screen_position_client.h" | 32 #include "ui/aura/client/screen_position_client.h" |
33 #include "ui/aura/root_window.h" | |
34 #include "ui/aura/window.h" | 33 #include "ui/aura/window.h" |
35 #include "ui/aura/window_delegate.h" | 34 #include "ui/aura/window_delegate.h" |
| 35 #include "ui/aura/window_event_dispatcher.h" |
36 #include "ui/base/hit_test.h" | 36 #include "ui/base/hit_test.h" |
37 #include "ui/compositor/layer.h" | 37 #include "ui/compositor/layer.h" |
38 #include "ui/gfx/screen.h" | 38 #include "ui/gfx/screen.h" |
39 #include "ui/gfx/transform.h" | 39 #include "ui/gfx/transform.h" |
40 #include "ui/views/corewm/window_util.h" | 40 #include "ui/views/corewm/window_util.h" |
41 #include "ui/wm/public/window_types.h" | 41 #include "ui/wm/public/window_types.h" |
42 | 42 |
43 namespace ash { | 43 namespace ash { |
44 | 44 |
45 scoped_ptr<WindowResizer> CreateWindowResizer( | 45 scoped_ptr<WindowResizer> CreateWindowResizer( |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 gfx::Rect snapped_bounds = ScreenUtil::GetDisplayWorkAreaBoundsInParent( | 1032 gfx::Rect snapped_bounds = ScreenUtil::GetDisplayWorkAreaBoundsInParent( |
1033 GetTarget()); | 1033 GetTarget()); |
1034 if (snapped_type == wm::SHOW_TYPE_RIGHT_SNAPPED) | 1034 if (snapped_type == wm::SHOW_TYPE_RIGHT_SNAPPED) |
1035 snapped_bounds.set_x(snapped_bounds.right() - bounds_in_parent.width()); | 1035 snapped_bounds.set_x(snapped_bounds.right() - bounds_in_parent.width()); |
1036 snapped_bounds.set_width(bounds_in_parent.width()); | 1036 snapped_bounds.set_width(bounds_in_parent.width()); |
1037 return bounds_in_parent == snapped_bounds; | 1037 return bounds_in_parent == snapped_bounds; |
1038 } | 1038 } |
1039 | 1039 |
1040 } // namespace internal | 1040 } // namespace internal |
1041 } // namespace ash | 1041 } // namespace ash |
OLD | NEW |