Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/utility/screenshot_controller.h" | 5 #include "ash/utility/screenshot_controller.h" |
| 6 | 6 |
| 7 #include "ash/display/cursor_window_controller.h" | 7 #include "ash/display/cursor_window_controller.h" |
| 8 #include "ash/display/mouse_cursor_event_filter.h" | 8 #include "ash/display/mouse_cursor_event_filter.h" |
| 9 #include "ash/display/window_tree_host_manager.h" | 9 #include "ash/display/window_tree_host_manager.h" |
| 10 #include "ash/screenshot_delegate.h" | 10 #include "ash/screenshot_delegate.h" |
| 11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
| 13 #include "ash/test/display_manager_test_api.h" | |
| 14 #include "ash/test/mirror_window_test_api.h" | 13 #include "ash/test/mirror_window_test_api.h" |
| 15 #include "ash/test/test_screenshot_delegate.h" | 14 #include "ash/test/test_screenshot_delegate.h" |
| 16 #include "ash/wm/window_util.h" | 15 #include "ash/wm/window_util.h" |
| 17 #include "ui/aura/env.h" | 16 #include "ui/aura/env.h" |
| 18 #include "ui/aura/window_event_dispatcher.h" | 17 #include "ui/aura/window_event_dispatcher.h" |
| 19 #include "ui/base/cursor/cursor.h" | 18 #include "ui/base/cursor/cursor.h" |
| 19 #include "ui/display/test/display_manager_test_api.h" | |
|
kylechar
2016/10/24 14:55:15
Is this needed or should it be ui/display/manager/
oshima
2016/10/24 19:29:16
You don't need the definition of DisplayManager to
rjkroege
2016/10/25 23:30:26
not needed. Done.
rjkroege
2016/10/25 23:30:26
Done.
| |
| 20 #include "ui/events/test/event_generator.h" | 20 #include "ui/events/test/event_generator.h" |
| 21 #include "ui/wm/core/cursor_manager.h" | 21 #include "ui/wm/core/cursor_manager.h" |
| 22 | 22 |
| 23 namespace ash { | 23 namespace ash { |
| 24 | 24 |
| 25 class ScreenshotControllerTest : public test::AshTestBase { | 25 class ScreenshotControllerTest : public test::AshTestBase { |
| 26 public: | 26 public: |
| 27 ScreenshotControllerTest() {} | 27 ScreenshotControllerTest() {} |
| 28 ~ScreenshotControllerTest() override {} | 28 ~ScreenshotControllerTest() override {} |
| 29 | 29 |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 488 CreateSelectableWindow(gfx::Rect(100, 100, 100, 100))); | 488 CreateSelectableWindow(gfx::Rect(100, 100, 100, 100))); |
| 489 window->SetCapture(); | 489 window->SetCapture(); |
| 490 EXPECT_TRUE(window->HasCapture()); | 490 EXPECT_TRUE(window->HasCapture()); |
| 491 StartWindowScreenshotSession(); | 491 StartWindowScreenshotSession(); |
| 492 EXPECT_TRUE(window->HasCapture()); | 492 EXPECT_TRUE(window->HasCapture()); |
| 493 Cancel(); | 493 Cancel(); |
| 494 EXPECT_FALSE(window->HasCapture()); | 494 EXPECT_FALSE(window->HasCapture()); |
| 495 } | 495 } |
| 496 | 496 |
| 497 } // namespace ash | 497 } // namespace ash |
| OLD | NEW |