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/ash_constants.h" | 5 #include "ash/ash_constants.h" |
6 #include "ash/frame/custom_frame_view_ash.h" | 6 #include "ash/frame/custom_frame_view_ash.h" |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/test/ash_test_base.h" | 8 #include "ash/test/ash_test_base.h" |
9 #include "ash/test/cursor_manager_test_api.h" | 9 #include "ash/test/cursor_manager_test_api.h" |
10 #include "ash/wm/resize_shadow.h" | 10 #include "ash/wm/resize_shadow.h" |
11 #include "ash/wm/resize_shadow_controller.h" | 11 #include "ash/wm/resize_shadow_controller.h" |
12 #include "ash/wm/window_state.h" | 12 #include "ash/wm/window_state.h" |
13 #include "ash/wm/window_state_aura.h" | |
14 #include "base/bind.h" | 13 #include "base/bind.h" |
15 #include "ui/aura/window_event_dispatcher.h" | 14 #include "ui/aura/window_event_dispatcher.h" |
16 #include "ui/base/cursor/cursor.h" | 15 #include "ui/base/cursor/cursor.h" |
17 #include "ui/base/hit_test.h" | 16 #include "ui/base/hit_test.h" |
18 #include "ui/events/test/event_generator.h" | 17 #include "ui/events/test/event_generator.h" |
19 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
20 #include "ui/views/widget/widget_delegate.h" | 19 #include "ui/views/widget/widget_delegate.h" |
21 | 20 |
22 namespace ash { | 21 namespace ash { |
23 namespace test { | 22 namespace test { |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 generator.MoveMouseTo(200, 50); | 238 generator.MoveMouseTo(200, 50); |
240 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); | 239 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); |
241 EXPECT_EQ(ui::CursorType::kEastResize, GetCurrentCursorType()); | 240 EXPECT_EQ(ui::CursorType::kEastResize, GetCurrentCursorType()); |
242 generator.MoveMouseTo(200 - ash::kResizeInsideBoundsSize, 50); | 241 generator.MoveMouseTo(200 - ash::kResizeInsideBoundsSize, 50); |
243 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); | 242 EXPECT_EQ(HTRIGHT, ResizeShadowHitTest()); |
244 EXPECT_EQ(ui::CursorType::kEastResize, GetCurrentCursorType()); | 243 EXPECT_EQ(ui::CursorType::kEastResize, GetCurrentCursorType()); |
245 } | 244 } |
246 | 245 |
247 } // namespace test | 246 } // namespace test |
248 } // namespace ash | 247 } // namespace ash |
OLD | NEW |