| 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/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/wm/window_util.h" | 9 #include "ash/wm/window_util.h" |
| 10 #include "ash/wm/workspace_controller.h" | 10 #include "ash/wm/workspace_controller.h" |
| 11 #include "ash/wm/workspace_controller_test_helper.h" | 11 #include "ash/wm/workspace_controller_test_helper.h" |
| 12 #include "ash/wm/workspace/workspace_event_handler_test_helper.h" | 12 #include "ash/wm/workspace/workspace_event_handler_test_helper.h" |
| 13 #include "ash/wm/workspace/workspace_manager.h" | |
| 14 #include "ui/aura/test/event_generator.h" | 13 #include "ui/aura/test/event_generator.h" |
| 15 #include "ui/aura/test/test_window_delegate.h" | 14 #include "ui/aura/test/test_window_delegate.h" |
| 16 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
| 17 #include "ui/base/hit_test.h" | 16 #include "ui/base/hit_test.h" |
| 18 #include "ui/gfx/screen.h" | 17 #include "ui/gfx/screen.h" |
| 19 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
| 20 | 19 |
| 21 namespace ash { | 20 namespace ash { |
| 22 namespace internal { | 21 namespace internal { |
| 23 | 22 |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 EXPECT_TRUE(HasTarget(w3.get())); | 248 EXPECT_TRUE(HasTarget(w3.get())); |
| 250 | 249 |
| 251 // Release the mouse. The resizer should still be visible and a subsequent | 250 // Release the mouse. The resizer should still be visible and a subsequent |
| 252 // press should not trigger a DCHECK. | 251 // press should not trigger a DCHECK. |
| 253 generator.ReleaseLeftButton(); | 252 generator.ReleaseLeftButton(); |
| 254 EXPECT_TRUE(IsShowing()); | 253 EXPECT_TRUE(IsShowing()); |
| 255 generator.PressLeftButton(); | 254 generator.PressLeftButton(); |
| 256 } | 255 } |
| 257 } // namespace internal | 256 } // namespace internal |
| 258 } // namespace ash | 257 } // namespace ash |
| OLD | NEW |