Chromium Code Reviews| 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 // The functionality done here doesn't make sense in mash. | |
|
msw
2017/03/07 21:36:01
nit: elaborate on this comment, cite a bug?
sky
2017/03/07 21:43:30
There is no bug, but I expanded the comment.
| |
| 362 if (WmShell::Get()->IsRunningInMash()) | |
| 363 return; | |
| 364 | |
| 361 Shell::GetInstance()->RemovePreTargetHandler( | 365 Shell::GetInstance()->RemovePreTargetHandler( |
| 362 Shell::GetInstance() | 366 Shell::GetInstance() |
| 363 ->window_tree_host_manager() | 367 ->window_tree_host_manager() |
| 364 ->input_method_event_handler()); | 368 ->input_method_event_handler()); |
| 365 } | 369 } |
| 366 | 370 |
| 367 display::DisplayManager* AshTestBase::display_manager() { | 371 display::DisplayManager* AshTestBase::display_manager() { |
| 368 return Shell::GetInstance()->display_manager(); | 372 return Shell::GetInstance()->display_manager(); |
| 369 } | 373 } |
| 370 | 374 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 393 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( | 397 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( |
| 394 display_manager()->GetSecondaryDisplay().id()); | 398 display_manager()->GetSecondaryDisplay().id()); |
| 395 } | 399 } |
| 396 | 400 |
| 397 display::Display AshTestBase::GetSecondaryDisplay() { | 401 display::Display AshTestBase::GetSecondaryDisplay() { |
| 398 return ash_test_helper_->GetSecondaryDisplay(); | 402 return ash_test_helper_->GetSecondaryDisplay(); |
| 399 } | 403 } |
| 400 | 404 |
| 401 } // namespace test | 405 } // namespace test |
| 402 } // namespace ash | 406 } // namespace ash |
| OLD | NEW |