| 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/wm/window_cycle_controller.h" | 5 #include "ash/wm/window_cycle_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/session/session_state_delegate.h" | 10 #include "ash/session/session_state_delegate.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "ash/wm/window_cycle_list.h" | 21 #include "ash/wm/window_cycle_list.h" |
| 22 #include "ash/wm/window_state_aura.h" | 22 #include "ash/wm/window_state_aura.h" |
| 23 #include "ash/wm/window_util.h" | 23 #include "ash/wm/window_util.h" |
| 24 #include "ui/aura/client/aura_constants.h" | 24 #include "ui/aura/client/aura_constants.h" |
| 25 #include "ui/aura/client/screen_position_client.h" | 25 #include "ui/aura/client/screen_position_client.h" |
| 26 #include "ui/aura/env.h" | 26 #include "ui/aura/env.h" |
| 27 #include "ui/aura/test/test_windows.h" | 27 #include "ui/aura/test/test_windows.h" |
| 28 #include "ui/aura/window.h" | 28 #include "ui/aura/window.h" |
| 29 #include "ui/aura/window_event_dispatcher.h" | 29 #include "ui/aura/window_event_dispatcher.h" |
| 30 #include "ui/gfx/geometry/rect.h" | 30 #include "ui/gfx/geometry/rect.h" |
| 31 #include "ui/gfx/screen.h" | |
| 32 | 31 |
| 33 namespace ash { | 32 namespace ash { |
| 34 | 33 |
| 35 using aura::test::CreateTestWindowWithId; | 34 using aura::test::CreateTestWindowWithId; |
| 36 using aura::test::TestWindowDelegate; | 35 using aura::test::TestWindowDelegate; |
| 37 using aura::Window; | 36 using aura::Window; |
| 38 | 37 |
| 39 class WindowCycleControllerTest : public test::AshTestBase { | 38 class WindowCycleControllerTest : public test::AshTestBase { |
| 40 public: | 39 public: |
| 41 WindowCycleControllerTest() {} | 40 WindowCycleControllerTest() {} |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 // Panel 1 is the next item as the MRU panel, removing it should make panel 2 | 584 // Panel 1 is the next item as the MRU panel, removing it should make panel 2 |
| 586 // the next window to be selected. | 585 // the next window to be selected. |
| 587 panel0.reset(); | 586 panel0.reset(); |
| 588 // Cycling again should now select panel1. | 587 // Cycling again should now select panel1. |
| 589 controller->HandleCycleWindow(WindowCycleController::FORWARD); | 588 controller->HandleCycleWindow(WindowCycleController::FORWARD); |
| 590 controller->StopCycling(); | 589 controller->StopCycling(); |
| 591 EXPECT_TRUE(wm::IsActiveWindow(panel1.get())); | 590 EXPECT_TRUE(wm::IsActiveWindow(panel1.get())); |
| 592 } | 591 } |
| 593 | 592 |
| 594 } // namespace ash | 593 } // namespace ash |
| OLD | NEW |