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/aura/wm_window_aura.h" | 10 #include "ash/aura/wm_window_aura.h" |
| 11 #include "ash/common/session/session_state_delegate.h" |
11 #include "ash/common/shell_window_ids.h" | 12 #include "ash/common/shell_window_ids.h" |
12 #include "ash/common/wm/window_state.h" | 13 #include "ash/common/wm/window_state.h" |
13 #include "ash/session/session_state_delegate.h" | |
14 #include "ash/shelf/shelf.h" | 14 #include "ash/shelf/shelf.h" |
15 #include "ash/shelf/shelf_widget.h" | 15 #include "ash/shelf/shelf_widget.h" |
16 #include "ash/shell.h" | 16 #include "ash/shell.h" |
17 #include "ash/test/ash_test_base.h" | 17 #include "ash/test/ash_test_base.h" |
18 #include "ash/test/shelf_test_api.h" | 18 #include "ash/test/shelf_test_api.h" |
19 #include "ash/test/shelf_view_test_api.h" | 19 #include "ash/test/shelf_view_test_api.h" |
20 #include "ash/test/test_shelf_delegate.h" | 20 #include "ash/test/test_shelf_delegate.h" |
21 #include "ash/test/test_shell_delegate.h" | 21 #include "ash/test/test_shell_delegate.h" |
22 #include "ash/wm/window_cycle_list.h" | 22 #include "ash/wm/window_cycle_list.h" |
23 #include "ash/wm/window_state_aura.h" | 23 #include "ash/wm/window_state_aura.h" |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 generator.PressKey(ui::VKEY_TAB, ui::EF_ALT_DOWN); | 635 generator.PressKey(ui::VKEY_TAB, ui::EF_ALT_DOWN); |
636 EXPECT_EQ(0u, key_count.GetCountAndReset()); | 636 EXPECT_EQ(0u, key_count.GetCountAndReset()); |
637 generator.ReleaseKey(ui::VKEY_TAB, ui::EF_ALT_DOWN); | 637 generator.ReleaseKey(ui::VKEY_TAB, ui::EF_ALT_DOWN); |
638 EXPECT_EQ(0u, key_count.GetCountAndReset()); | 638 EXPECT_EQ(0u, key_count.GetCountAndReset()); |
639 generator.ReleaseKey(ui::VKEY_MENU, ui::EF_NONE); | 639 generator.ReleaseKey(ui::VKEY_MENU, ui::EF_NONE); |
640 EXPECT_TRUE(wm::GetWindowState(w1.get())->IsActive()); | 640 EXPECT_TRUE(wm::GetWindowState(w1.get())->IsActive()); |
641 EXPECT_EQ(0u, key_count.GetCountAndReset()); | 641 EXPECT_EQ(0u, key_count.GetCountAndReset()); |
642 } | 642 } |
643 | 643 |
644 } // namespace ash | 644 } // namespace ash |
OLD | NEW |