OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ash_constants.h" | 5 #include "ash/ash_constants.h" |
6 #include "ash/common/frame/custom_frame_view_ash.h" | 6 #include "ash/frame/custom_frame_view_ash.h" |
7 #include "ash/common/wm/window_state.h" | |
8 #include "ash/shell.h" | 7 #include "ash/shell.h" |
9 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
10 #include "ash/test/cursor_manager_test_api.h" | 9 #include "ash/test/cursor_manager_test_api.h" |
11 #include "ash/wm/resize_shadow.h" | 10 #include "ash/wm/resize_shadow.h" |
12 #include "ash/wm/resize_shadow_controller.h" | 11 #include "ash/wm/resize_shadow_controller.h" |
| 12 #include "ash/wm/window_state.h" |
13 #include "ash/wm/window_state_aura.h" | 13 #include "ash/wm/window_state_aura.h" |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "ui/aura/window_event_dispatcher.h" | 15 #include "ui/aura/window_event_dispatcher.h" |
16 #include "ui/base/cursor/cursor.h" | 16 #include "ui/base/cursor/cursor.h" |
17 #include "ui/base/hit_test.h" | 17 #include "ui/base/hit_test.h" |
18 #include "ui/events/test/event_generator.h" | 18 #include "ui/events/test/event_generator.h" |
19 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
20 #include "ui/views/widget/widget_delegate.h" | 20 #include "ui/views/widget/widget_delegate.h" |
21 | 21 |
22 namespace ash { | 22 namespace ash { |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 generator.MoveMouseTo(200, 50); | 213 generator.MoveMouseTo(200, 50); |
214 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); | 214 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); |
215 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); | 215 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); |
216 generator.MoveMouseTo(200 - ash::kResizeInsideBoundsSize, 50); | 216 generator.MoveMouseTo(200 - ash::kResizeInsideBoundsSize, 50); |
217 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); | 217 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); |
218 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); | 218 EXPECT_EQ(ui::kCursorEastResize, GetCurrentCursorType()); |
219 } | 219 } |
220 | 220 |
221 } // namespace test | 221 } // namespace test |
222 } // namespace ash | 222 } // namespace ash |
OLD | NEW |