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