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/root_window_controller.h" | 5 #include "ash/root_window_controller.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | |
7 #include "ash/session_state_delegate.h" | 8 #include "ash/session_state_delegate.h" |
8 #include "ash/shelf/shelf_layout_manager.h" | 9 #include "ash/shelf/shelf_layout_manager.h" |
9 #include "ash/shell.h" | 10 #include "ash/shell.h" |
10 #include "ash/shell_window_ids.h" | 11 #include "ash/shell_window_ids.h" |
11 #include "ash/system/tray/system_tray_delegate.h" | 12 #include "ash/system/tray/system_tray_delegate.h" |
12 #include "ash/test/ash_test_base.h" | 13 #include "ash/test/ash_test_base.h" |
13 #include "ash/wm/system_modal_container_layout_manager.h" | 14 #include "ash/wm/system_modal_container_layout_manager.h" |
14 #include "ash/wm/window_properties.h" | 15 #include "ash/wm/window_properties.h" |
15 #include "ash/wm/window_util.h" | 16 #include "ash/wm/window_util.h" |
16 #include "base/command_line.h" | 17 #include "base/command_line.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 } | 144 } |
144 | 145 |
145 aura::Window* GetModalContainer(aura::RootWindow* root_window) { | 146 aura::Window* GetModalContainer(aura::RootWindow* root_window) { |
146 return Shell::GetContainer( | 147 return Shell::GetContainer( |
147 root_window, | 148 root_window, |
148 ash::internal::kShellWindowId_SystemModalContainer); | 149 ash::internal::kShellWindowId_SystemModalContainer); |
149 } | 150 } |
150 }; | 151 }; |
151 | 152 |
152 TEST_F(RootWindowControllerTest, MoveWindows_Basic) { | 153 TEST_F(RootWindowControllerTest, MoveWindows_Basic) { |
154 // Disabled here as the work_area insets here are hard coded they are | |
James Cook
2013/08/22 00:19:12
nit: period after "hard coded"
Harry McCleave
2013/08/27 00:37:00
Done.
| |
155 // tested in the alternate shelf layout in launcher_view unit tests. | |
156 CommandLine::ForCurrentProcess()->AppendSwitch( | |
157 ash::switches::kAshDisableAlternateShelfLayout); | |
153 if (!SupportsMultipleDisplays()) | 158 if (!SupportsMultipleDisplays()) |
154 return; | 159 return; |
155 | 160 |
156 UpdateDisplay("600x600,500x500"); | 161 UpdateDisplay("600x600,500x500"); |
157 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); | 162 Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); |
158 internal::RootWindowController* controller = | 163 internal::RootWindowController* controller = |
159 Shell::GetPrimaryRootWindowController(); | 164 Shell::GetPrimaryRootWindowController(); |
160 internal::ShelfLayoutManager* shelf_layout_manager = | 165 internal::ShelfLayoutManager* shelf_layout_manager = |
161 controller->GetShelfLayoutManager(); | 166 controller->GetShelfLayoutManager(); |
162 shelf_layout_manager->SetAutoHideBehavior( | 167 shelf_layout_manager->SetAutoHideBehavior( |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
566 BlockUserSession(static_cast<UserSessionBlockReason>(block_reason)); | 571 BlockUserSession(static_cast<UserSessionBlockReason>(block_reason)); |
567 event_generator.ClickLeftButton(); | 572 event_generator.ClickLeftButton(); |
568 expected_mouse_presses++; | 573 expected_mouse_presses++; |
569 EXPECT_EQ(expected_mouse_presses, main_delegate->mouse_presses()); | 574 EXPECT_EQ(expected_mouse_presses, main_delegate->mouse_presses()); |
570 UnblockUserSession(); | 575 UnblockUserSession(); |
571 } | 576 } |
572 } | 577 } |
573 | 578 |
574 } // namespace test | 579 } // namespace test |
575 } // namespace ash | 580 } // namespace ash |
OLD | NEW |