Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ash/test/display_configuration_controller_test_api.h" | |
| 6 | |
| 7 #include "ash/display/display_configuration_controller.h" | |
| 8 | |
| 9 namespace ash { | |
| 10 namespace test { | |
| 11 | |
| 12 DisplayConfigurationControllerTestApi::DisplayConfigurationControllerTestApi( | |
| 13 DisplayConfigurationController* controller) | |
| 14 : controller_(controller) {} | |
| 15 | |
| 16 void DisplayConfigurationControllerTestApi::DisableDisplayAnimator() { | |
| 17 controller_->ResetAnimatorForTest(); | |
| 18 } | |
| 19 | |
| 20 int DisplayConfigurationControllerTestApi:: | |
| 21 DisplayScreenRotationAnimatorMapSize() { | |
| 22 return controller_->display_animator_map_.size(); | |
| 23 } | |
| 24 | |
| 25 ScreenRotationAnimator* | |
| 26 DisplayConfigurationControllerTestApi::GetScreenRotationAnimatorForDisplay( | |
|
bruthig
2017/03/08 22:35:59
This function should probably be a raw accessor to
wutao
2017/03/09 22:09:19
But in the test of ash/display/display_configurati
bruthig
2017/03/10 22:34:07
Ack.
I wish there was an easier, less white-box w
| |
| 27 int64_t display_id) { | |
| 28 return controller_->GetScreenRotationAnimatorForDisplay(display_id); | |
| 29 } | |
| 30 | |
| 31 } // namespace test | |
| 32 } // namespace ash | |
| OLD | NEW |