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/display/display_controller.h" | 5 #include "ash/display/display_controller.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "ash/display/display_info.h" | 8 #include "ash/display/display_info.h" |
9 #include "ash/display/display_layout_store.h" | 9 #include "ash/display/display_layout_store.h" |
10 #include "ash/display/display_manager.h" | 10 #include "ash/display/display_manager.h" |
11 #include "ash/screen_util.h" | 11 #include "ash/screen_util.h" |
12 #include "ash/shelf/shelf.h" | 12 #include "ash/shelf/shelf.h" |
13 #include "ash/shelf/shelf_widget.h" | 13 #include "ash/shelf/shelf_widget.h" |
14 #include "ash/shell.h" | 14 #include "ash/shell.h" |
15 #include "ash/test/ash_test_base.h" | 15 #include "ash/test/ash_test_base.h" |
16 #include "ash/test/ash_test_helper.h" | 16 #include "ash/test/ash_test_helper.h" |
17 #include "ash/test/cursor_manager_test_api.h" | 17 #include "ash/test/cursor_manager_test_api.h" |
18 #include "ash/test/display_manager_test_api.h" | 18 #include "ash/test/display_manager_test_api.h" |
19 #include "ash/test/test_shell_delegate.h" | 19 #include "ash/test/test_shell_delegate.h" |
20 #include "ash/wm/window_state.h" | 20 #include "ash/wm/window_state.h" |
21 #include "ash/wm/wm_event.h" | 21 #include "ash/wm/wm_event.h" |
22 #include "base/command_line.h" | 22 #include "base/command_line.h" |
23 #include "ui/aura/client/activation_change_observer.h" | 23 #include "ui/aura/client/activation_change_observer.h" |
24 #include "ui/aura/client/activation_client.h" | 24 #include "ui/aura/client/activation_client.h" |
25 #include "ui/aura/client/focus_change_observer.h" | 25 #include "ui/aura/client/focus_change_observer.h" |
26 #include "ui/aura/client/focus_client.h" | 26 #include "ui/aura/client/focus_client.h" |
27 #include "ui/aura/env.h" | 27 #include "ui/aura/env.h" |
28 #include "ui/aura/test/event_generator.h" | 28 #include "ui/aura/test/event_generator.h" |
29 #include "ui/aura/window_event_dispatcher.h" | |
30 #include "ui/aura/window_tracker.h" | 29 #include "ui/aura/window_tracker.h" |
| 30 #include "ui/aura/window_tree_host.h" |
31 #include "ui/events/event_handler.h" | 31 #include "ui/events/event_handler.h" |
32 #include "ui/gfx/display.h" | 32 #include "ui/gfx/display.h" |
33 #include "ui/gfx/screen.h" | 33 #include "ui/gfx/screen.h" |
34 #include "ui/views/widget/widget.h" | 34 #include "ui/views/widget/widget.h" |
35 | 35 |
36 #if defined(USE_X11) | 36 #if defined(USE_X11) |
37 #include <X11/Xlib.h> | 37 #include <X11/Xlib.h> |
38 #include "ui/gfx/x/x11_types.h" | 38 #include "ui/gfx/x/x11_types.h" |
39 #undef RootWindow | 39 #undef RootWindow |
40 #endif | 40 #endif |
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1395 EXPECT_EQ("aura_root_x", GetXWindowName(secondary->GetHost())); | 1395 EXPECT_EQ("aura_root_x", GetXWindowName(secondary->GetHost())); |
1396 | 1396 |
1397 // Switching back to single display. | 1397 // Switching back to single display. |
1398 UpdateDisplay("300x400"); | 1398 UpdateDisplay("300x400"); |
1399 EXPECT_EQ("aura_root_0", GetXWindowName( | 1399 EXPECT_EQ("aura_root_0", GetXWindowName( |
1400 Shell::GetPrimaryRootWindow()->GetHost())); | 1400 Shell::GetPrimaryRootWindow()->GetHost())); |
1401 } | 1401 } |
1402 #endif | 1402 #endif |
1403 | 1403 |
1404 } // namespace ash | 1404 } // namespace ash |
OLD | NEW |