Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: ash/display/display_controller_unittest.cc

Issue 196383014: Remove window/host accessors from WED; IWYU for WTH (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/debug.cc ('k') | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/debug.cc ('k') | ash/display/display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698