| 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/test/ash_test_base.h" | 5 #include "ash/test/ash_test_base.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/common/test/test_session_state_delegate.h" | 10 #include "ash/common/test/test_session_state_delegate.h" |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 } | 351 } |
| 352 } | 352 } |
| 353 | 353 |
| 354 void AshTestBase::UnblockUserSession() { | 354 void AshTestBase::UnblockUserSession() { |
| 355 WmShell::Get()->GetSessionStateDelegate()->UnlockScreen(); | 355 WmShell::Get()->GetSessionStateDelegate()->UnlockScreen(); |
| 356 SetSessionStarted(true); | 356 SetSessionStarted(true); |
| 357 SetUserAddingScreenRunning(false); | 357 SetUserAddingScreenRunning(false); |
| 358 } | 358 } |
| 359 | 359 |
| 360 void AshTestBase::DisableIME() { | 360 void AshTestBase::DisableIME() { |
| 361 // WindowTreeHostManager isn't applicable to mash and IME is routed |
| 362 // differently in mash. |
| 363 if (WmShell::Get()->IsRunningInMash()) |
| 364 return; |
| 365 |
| 361 Shell::GetInstance()->RemovePreTargetHandler( | 366 Shell::GetInstance()->RemovePreTargetHandler( |
| 362 Shell::GetInstance() | 367 Shell::GetInstance() |
| 363 ->window_tree_host_manager() | 368 ->window_tree_host_manager() |
| 364 ->input_method_event_handler()); | 369 ->input_method_event_handler()); |
| 365 } | 370 } |
| 366 | 371 |
| 367 display::DisplayManager* AshTestBase::display_manager() { | 372 display::DisplayManager* AshTestBase::display_manager() { |
| 368 return Shell::GetInstance()->display_manager(); | 373 return Shell::GetInstance()->display_manager(); |
| 369 } | 374 } |
| 370 | 375 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 393 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( | 398 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( |
| 394 display_manager()->GetSecondaryDisplay().id()); | 399 display_manager()->GetSecondaryDisplay().id()); |
| 395 } | 400 } |
| 396 | 401 |
| 397 display::Display AshTestBase::GetSecondaryDisplay() { | 402 display::Display AshTestBase::GetSecondaryDisplay() { |
| 398 return ash_test_helper_->GetSecondaryDisplay(); | 403 return ash_test_helper_->GetSecondaryDisplay(); |
| 399 } | 404 } |
| 400 | 405 |
| 401 } // namespace test | 406 } // namespace test |
| 402 } // namespace ash | 407 } // namespace ash |
| OLD | NEW |