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/drag_window_resizer.h" | 5 #include "ash/wm/drag_window_resizer.h" |
6 | 6 |
7 #include "ash/common/shelf/shelf_layout_manager.h" | |
8 #include "ash/common/wm/window_positioning_utils.h" | |
9 #include "ash/common/wm_window.h" | |
10 #include "ash/display/mouse_cursor_event_filter.h" | 7 #include "ash/display/mouse_cursor_event_filter.h" |
11 #include "ash/public/cpp/shell_window_ids.h" | 8 #include "ash/public/cpp/shell_window_ids.h" |
12 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 10 #include "ash/shelf/shelf_layout_manager.h" |
13 #include "ash/shell.h" | 11 #include "ash/shell.h" |
14 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
15 #include "ash/test/cursor_manager_test_api.h" | 13 #include "ash/test/cursor_manager_test_api.h" |
16 #include "ash/wm/drag_window_controller.h" | 14 #include "ash/wm/drag_window_controller.h" |
| 15 #include "ash/wm/window_positioning_utils.h" |
17 #include "ash/wm/window_util.h" | 16 #include "ash/wm/window_util.h" |
| 17 #include "ash/wm_window.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
20 #include "ui/aura/client/aura_constants.h" | 20 #include "ui/aura/client/aura_constants.h" |
21 #include "ui/aura/env.h" | 21 #include "ui/aura/env.h" |
22 #include "ui/aura/test/test_window_delegate.h" | 22 #include "ui/aura/test/test_window_delegate.h" |
23 #include "ui/base/hit_test.h" | 23 #include "ui/base/hit_test.h" |
24 #include "ui/base/ui_base_types.h" | 24 #include "ui/base/ui_base_types.h" |
25 #include "ui/compositor/layer_delegate.h" | 25 #include "ui/compositor/layer_delegate.h" |
26 #include "ui/compositor/layer_tree_owner.h" | 26 #include "ui/compositor/layer_tree_owner.h" |
27 #include "ui/display/display_layout.h" | 27 #include "ui/display/display_layout.h" |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 ASSERT_TRUE(resizer.get()); | 745 ASSERT_TRUE(resizer.get()); |
746 resizer->Drag(CalculateDragPoint(*resizer, 399, 200), 0); | 746 resizer->Drag(CalculateDragPoint(*resizer, 399, 200), 0); |
747 EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(399, 200))); | 747 EXPECT_TRUE(TestIfMouseWarpsAt(gfx::Point(399, 200))); |
748 EXPECT_EQ("401,200", | 748 EXPECT_EQ("401,200", |
749 aura::Env::GetInstance()->last_mouse_location().ToString()); | 749 aura::Env::GetInstance()->last_mouse_location().ToString()); |
750 resizer->CompleteDrag(); | 750 resizer->CompleteDrag(); |
751 } | 751 } |
752 } | 752 } |
753 | 753 |
754 } // namespace ash | 754 } // namespace ash |
OLD | NEW |