| 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/multi_window_resize_controller.h" | 5 #include "ash/wm/workspace/multi_window_resize_controller.h" |
| 6 | 6 |
| 7 #include "ash/ash_constants.h" | 7 #include "ash/ash_constants.h" |
| 8 #include "ash/frame/custom_frame_view_ash.h" | 8 #include "ash/frame/custom_frame_view_ash.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
| 11 #include "ash/test/shell_test_api.h" | 11 #include "ash/test/shell_test_api.h" |
| 12 #include "ash/wm/window_util.h" | 12 #include "ash/wm/window_util.h" |
| 13 #include "ash/wm/workspace/workspace_event_handler_test_helper.h" | 13 #include "ash/wm/workspace/workspace_event_handler_test_helper.h" |
| 14 #include "ash/wm/workspace_controller.h" | 14 #include "ash/wm/workspace_controller.h" |
| 15 #include "ash/wm/workspace_controller_test_helper.h" | 15 #include "ash/wm/workspace_controller_test_helper.h" |
| 16 #include "ui/aura/test/test_window_delegate.h" | 16 #include "ui/aura/test/test_window_delegate.h" |
| 17 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
| 18 #include "ui/base/hit_test.h" | 18 #include "ui/base/hit_test.h" |
| 19 #include "ui/events/test/event_generator.h" | 19 #include "ui/events/test/event_generator.h" |
| 20 #include "ui/gfx/screen.h" | |
| 21 #include "ui/views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
| 22 #include "ui/views/widget/widget_delegate.h" | 21 #include "ui/views/widget/widget_delegate.h" |
| 23 | 22 |
| 24 namespace ash { | 23 namespace ash { |
| 25 | 24 |
| 26 namespace { | 25 namespace { |
| 27 | 26 |
| 28 // WidgetDelegate for a resizable widget which creates a NonClientFrameView | 27 // WidgetDelegate for a resizable widget which creates a NonClientFrameView |
| 29 // which is actually used in Ash. | 28 // which is actually used in Ash. |
| 30 class TestWidgetDelegate : public views::WidgetDelegateView { | 29 class TestWidgetDelegate : public views::WidgetDelegateView { |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 366 |
| 368 // Clicking outside the resize handle should immediately hide the resize | 367 // Clicking outside the resize handle should immediately hide the resize |
| 369 // handle. | 368 // handle. |
| 370 EXPECT_FALSE(resize_widget_bounds_in_screen.Contains(w1_center_in_screen)); | 369 EXPECT_FALSE(resize_widget_bounds_in_screen.Contains(w1_center_in_screen)); |
| 371 generator.MoveMouseTo(w1_center_in_screen); | 370 generator.MoveMouseTo(w1_center_in_screen); |
| 372 generator.ClickLeftButton(); | 371 generator.ClickLeftButton(); |
| 373 EXPECT_FALSE(IsShowing()); | 372 EXPECT_FALSE(IsShowing()); |
| 374 } | 373 } |
| 375 | 374 |
| 376 } // namespace ash | 375 } // namespace ash |
| OLD | NEW |