| 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 "athena/wm/public/window_manager.h" | 5 #include "athena/wm/public/window_manager.h" |
| 6 | 6 |
| 7 #include "athena/screen/public/screen_manager.h" | 7 #include "athena/screen/public/screen_manager.h" |
| 8 #include "athena/test/base/athena_test_base.h" | 8 #include "athena/test/base/athena_test_base.h" |
| 9 #include "athena/test/base/test_windows.h" | 9 #include "athena/test/base/test_windows.h" |
| 10 #include "athena/wm/public/window_list_provider.h" | 10 #include "athena/wm/public/window_list_provider.h" |
| 11 #include "athena/wm/split_view_controller.h" | 11 #include "athena/wm/split_view_controller.h" |
| 12 #include "athena/wm/test/window_manager_impl_test_api.h" | 12 #include "athena/wm/test/window_manager_impl_test_api.h" |
| 13 #include "athena/wm/window_manager_impl.h" | 13 #include "athena/wm/window_manager_impl.h" |
| 14 #include "ui/aura/client/window_tree_client.h" | 14 #include "ui/aura/client/window_tree_client.h" |
| 15 #include "ui/aura/test/test_window_delegate.h" | 15 #include "ui/aura/test/test_window_delegate.h" |
| 16 #include "ui/aura/window.h" | 16 #include "ui/aura/window.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/gfx/display.h" | 19 #include "ui/gfx/display.h" |
| 20 #include "ui/gfx/screen.h" | 20 #include "ui/gfx/screen.h" |
| 21 #include "ui/wm/core/window_util.h" | 21 #include "ui/wm/core/window_util.h" |
| 22 | 22 |
| 23 namespace athena { | 23 namespace athena { |
| 24 | 24 |
| 25 class WindowManagerTest : public test::AthenaTestBase { | 25 class WindowManagerTest : public test::AthenaTestBase { |
| 26 public: | 26 public: |
| 27 WindowManagerTest() {} | 27 WindowManagerTest() {} |
| 28 virtual ~WindowManagerTest() {} | 28 ~WindowManagerTest() override {} |
| 29 | 29 |
| 30 scoped_ptr<aura::Window> CreateAndActivateWindow( | 30 scoped_ptr<aura::Window> CreateAndActivateWindow( |
| 31 aura::WindowDelegate* delegate) { | 31 aura::WindowDelegate* delegate) { |
| 32 scoped_ptr<aura::Window> window( | 32 scoped_ptr<aura::Window> window( |
| 33 test::CreateNormalWindow(delegate, nullptr)); | 33 test::CreateNormalWindow(delegate, nullptr)); |
| 34 window->Show(); | 34 window->Show(); |
| 35 wm::ActivateWindow(window.get()); | 35 wm::ActivateWindow(window.get()); |
| 36 return window.Pass(); | 36 return window.Pass(); |
| 37 } | 37 } |
| 38 | 38 |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 aura::test::TestWindowDelegate delegate; | 387 aura::test::TestWindowDelegate delegate; |
| 388 scoped_ptr<aura::Window> w1(CreateAndActivateWindow(&delegate)); | 388 scoped_ptr<aura::Window> w1(CreateAndActivateWindow(&delegate)); |
| 389 WindowManager::Get()->EnterOverview(); | 389 WindowManager::Get()->EnterOverview(); |
| 390 | 390 |
| 391 ui::test::EventGenerator generator(root_window()); | 391 ui::test::EventGenerator generator(root_window()); |
| 392 generator.MoveMouseTo(1, 1); | 392 generator.MoveMouseTo(1, 1); |
| 393 generator.ClickLeftButton(); | 393 generator.ClickLeftButton(); |
| 394 } | 394 } |
| 395 | 395 |
| 396 } // namespace athena | 396 } // namespace athena |
| OLD | NEW |