| 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/shell_test_api.h" | 5 #include "ash/test/shell_test_api.h" |
| 6 | 6 |
| 7 #include "ash/common/session/session_state_delegate.h" | 7 #include "ash/common/session/session_state_delegate.h" |
| 8 #include "ash/display/display_configuration_controller.h" | 8 #include "ash/display/display_configuration_controller.h" |
| 9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 | 32 |
| 33 DragDropController* ShellTestApi::drag_drop_controller() { | 33 DragDropController* ShellTestApi::drag_drop_controller() { |
| 34 return shell_->drag_drop_controller_.get(); | 34 return shell_->drag_drop_controller_.get(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void ShellTestApi::DisableDisplayAnimator() { | 37 void ShellTestApi::DisableDisplayAnimator() { |
| 38 shell_->display_configuration_controller()->ResetAnimatorForTest(); | 38 shell_->display_configuration_controller()->ResetAnimatorForTest(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 ScreenRotationAnimator* ShellTestApi::GetOrMakeAnimatorByDisplayId( |
| 42 int64_t display_id) { |
| 43 return shell_->display_configuration_controller() |
| 44 ->GetOrMakeAnimatorByDisplayId(display_id); |
| 45 } |
| 46 |
| 47 int ShellTestApi::DisplayIdAnimatorMapSize() { |
| 48 return shell_->display_configuration_controller() |
| 49 ->display_animator_map_.size(); |
| 50 } |
| 51 |
| 41 void ShellTestApi::SetSessionStateDelegate( | 52 void ShellTestApi::SetSessionStateDelegate( |
| 42 SessionStateDelegate* session_state_delegate) { | 53 SessionStateDelegate* session_state_delegate) { |
| 43 shell_->session_state_delegate_.reset(session_state_delegate); | 54 shell_->session_state_delegate_.reset(session_state_delegate); |
| 44 } | 55 } |
| 45 | 56 |
| 46 } // namespace test | 57 } // namespace test |
| 47 } // namespace ash | 58 } // namespace ash |
| OLD | NEW |