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/window_cycle_controller.h" | 5 #include "ash/wm/window_cycle_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/session_state_delegate.h" | 9 #include "ash/session_state_delegate.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
11 #include "ash/shell_window_ids.h" | 11 #include "ash/shell_window_ids.h" |
12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
13 #include "ash/test/test_shell_delegate.h" | 13 #include "ash/test/test_shell_delegate.h" |
14 #include "ash/wm/window_cycle_list.h" | 14 #include "ash/wm/window_cycle_list.h" |
15 #include "ash/wm/window_state.h" | 15 #include "ash/wm/window_state.h" |
16 #include "ash/wm/window_util.h" | 16 #include "ash/wm/window_util.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "ui/aura/client/aura_constants.h" | 18 #include "ui/aura/client/aura_constants.h" |
19 #include "ui/aura/client/screen_position_client.h" | 19 #include "ui/aura/client/screen_position_client.h" |
20 #include "ui/aura/env.h" | 20 #include "ui/aura/env.h" |
21 #include "ui/aura/root_window.h" | |
22 #include "ui/aura/test/test_windows.h" | 21 #include "ui/aura/test/test_windows.h" |
23 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" |
| 23 #include "ui/aura/window_event_dispatcher.h" |
24 #include "ui/gfx/rect.h" | 24 #include "ui/gfx/rect.h" |
25 #include "ui/gfx/screen.h" | 25 #include "ui/gfx/screen.h" |
26 | 26 |
27 namespace ash { | 27 namespace ash { |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 using aura::test::CreateTestWindowWithId; | 31 using aura::test::CreateTestWindowWithId; |
32 using aura::test::TestWindowDelegate; | 32 using aura::test::TestWindowDelegate; |
33 using aura::Window; | 33 using aura::Window; |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 controller->HandleCycleWindow(WindowCycleController::FORWARD, true); | 437 controller->HandleCycleWindow(WindowCycleController::FORWARD, true); |
438 EXPECT_TRUE(wm::IsActiveWindow(window2.get())); | 438 EXPECT_TRUE(wm::IsActiveWindow(window2.get())); |
439 | 439 |
440 controller->HandleCycleWindow(WindowCycleController::FORWARD, true); | 440 controller->HandleCycleWindow(WindowCycleController::FORWARD, true); |
441 EXPECT_TRUE(wm::IsActiveWindow(window0.get())); | 441 EXPECT_TRUE(wm::IsActiveWindow(window0.get())); |
442 } | 442 } |
443 | 443 |
444 } // namespace | 444 } // namespace |
445 | 445 |
446 } // namespace ash | 446 } // namespace ash |
OLD | NEW |