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/common/wm/workspace/workspace_window_resizer.h" | 5 #include "ash/common/wm/workspace/workspace_window_resizer.h" |
6 | 6 |
| 7 #include "ash/common/shell_window_ids.h" |
7 #include "ash/common/wm/window_positioning_utils.h" | 8 #include "ash/common/wm/window_positioning_utils.h" |
8 #include "ash/common/wm/window_state.h" | 9 #include "ash/common/wm/window_state.h" |
9 #include "ash/common/wm/wm_event.h" | 10 #include "ash/common/wm/wm_event.h" |
10 #include "ash/common/wm/workspace/phantom_window_controller.h" | 11 #include "ash/common/wm/workspace/phantom_window_controller.h" |
11 #include "ash/display/display_manager.h" | 12 #include "ash/display/display_manager.h" |
12 #include "ash/screen_util.h" | 13 #include "ash/screen_util.h" |
13 #include "ash/shelf/shelf.h" | 14 #include "ash/shelf/shelf.h" |
14 #include "ash/shell.h" | 15 #include "ash/shell.h" |
15 #include "ash/shell_window_ids.h" | |
16 #include "ash/test/ash_test_base.h" | 16 #include "ash/test/ash_test_base.h" |
17 #include "ash/test/display_manager_test_api.h" | 17 #include "ash/test/display_manager_test_api.h" |
18 #include "ash/wm/aura/wm_window_aura.h" | 18 #include "ash/wm/aura/wm_window_aura.h" |
19 #include "ash/wm/window_state_aura.h" | 19 #include "ash/wm/window_state_aura.h" |
20 #include "ash/wm/window_util.h" | 20 #include "ash/wm/window_util.h" |
21 #include "ash/wm/workspace_controller.h" | 21 #include "ash/wm/workspace_controller.h" |
22 #include "base/command_line.h" | 22 #include "base/command_line.h" |
23 #include "base/strings/string_number_conversions.h" | 23 #include "base/strings/string_number_conversions.h" |
24 #include "base/strings/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
25 #include "ui/aura/client/aura_constants.h" | 25 #include "ui/aura/client/aura_constants.h" |
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1886 // Drag even more to snap to the edge. | 1886 // Drag even more to snap to the edge. |
1887 generator.GestureScrollSequence(gfx::Point(400, kRootHeight - 40), | 1887 generator.GestureScrollSequence(gfx::Point(400, kRootHeight - 40), |
1888 gfx::Point(400, kRootHeight - 25), | 1888 gfx::Point(400, kRootHeight - 25), |
1889 base::TimeDelta::FromMilliseconds(10), | 1889 base::TimeDelta::FromMilliseconds(10), |
1890 5); | 1890 5); |
1891 EXPECT_EQ(gfx::Rect(100, 100, 600, kRootHeight - 100).ToString(), | 1891 EXPECT_EQ(gfx::Rect(100, 100, 600, kRootHeight - 100).ToString(), |
1892 touch_resize_window_->bounds().ToString()); | 1892 touch_resize_window_->bounds().ToString()); |
1893 } | 1893 } |
1894 | 1894 |
1895 } // namespace ash | 1895 } // namespace ash |
OLD | NEW |