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 "ash/public/cpp/config.h" | 7 #include "ash/public/cpp/config.h" |
8 #include "ash/public/cpp/shell_window_ids.h" | 8 #include "ash/public/cpp/shell_window_ids.h" |
9 #include "ash/screen_util.h" | 9 #include "ash/screen_util.h" |
| 10 #include "ash/shelf/shelf.h" |
10 #include "ash/shelf/shelf_constants.h" | 11 #include "ash/shelf/shelf_constants.h" |
11 #include "ash/shelf/wm_shelf.h" | |
12 #include "ash/shell.h" | 12 #include "ash/shell.h" |
13 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
14 #include "ash/wm/window_positioning_utils.h" | 14 #include "ash/wm/window_positioning_utils.h" |
15 #include "ash/wm/window_state.h" | 15 #include "ash/wm/window_state.h" |
16 #include "ash/wm/window_util.h" | 16 #include "ash/wm/window_util.h" |
17 #include "ash/wm/wm_event.h" | 17 #include "ash/wm/wm_event.h" |
18 #include "ash/wm/workspace/phantom_window_controller.h" | 18 #include "ash/wm/workspace/phantom_window_controller.h" |
19 #include "ash/wm/workspace_controller.h" | 19 #include "ash/wm/workspace_controller.h" |
20 #include "ash/wm_window.h" | 20 #include "ash/wm_window.h" |
21 #include "base/command_line.h" | 21 #include "base/command_line.h" |
(...skipping 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1850 touch_resize_window_->bounds().ToString()); | 1850 touch_resize_window_->bounds().ToString()); |
1851 // Drag even more to snap to the edge. | 1851 // Drag even more to snap to the edge. |
1852 generator.GestureScrollSequence(gfx::Point(400, kRootHeight - 40), | 1852 generator.GestureScrollSequence(gfx::Point(400, kRootHeight - 40), |
1853 gfx::Point(400, kRootHeight - 25), | 1853 gfx::Point(400, kRootHeight - 25), |
1854 base::TimeDelta::FromMilliseconds(10), 5); | 1854 base::TimeDelta::FromMilliseconds(10), 5); |
1855 EXPECT_EQ(gfx::Rect(100, 100, 600, kRootHeight - 100).ToString(), | 1855 EXPECT_EQ(gfx::Rect(100, 100, 600, kRootHeight - 100).ToString(), |
1856 touch_resize_window_->bounds().ToString()); | 1856 touch_resize_window_->bounds().ToString()); |
1857 } | 1857 } |
1858 | 1858 |
1859 } // namespace ash | 1859 } // namespace ash |
OLD | NEW |