OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef ASH_ROTATOR_TEST_SCREEN_ROTATION_ANIMATOR_TEST_API_H_ | 5 #ifndef ASH_ROTATOR_TEST_SCREEN_ROTATION_ANIMATOR_TEST_API_H_ |
6 #define ASH_ROTATOR_TEST_SCREEN_ROTATION_ANIMATOR_TEST_API_H_ | 6 #define ASH_ROTATOR_TEST_SCREEN_ROTATION_ANIMATOR_TEST_API_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 class ScreenRotationAnimatorTestApi | 26 class ScreenRotationAnimatorTestApi |
27 : public ui::test::MultiLayerAnimatorTestController, | 27 : public ui::test::MultiLayerAnimatorTestController, |
28 public ui::test::MultiLayerAnimatorTestControllerDelegate { | 28 public ui::test::MultiLayerAnimatorTestControllerDelegate { |
29 public: | 29 public: |
30 explicit ScreenRotationAnimatorTestApi(ScreenRotationAnimator* animator); | 30 explicit ScreenRotationAnimatorTestApi(ScreenRotationAnimator* animator); |
31 ~ScreenRotationAnimatorTestApi() override; | 31 ~ScreenRotationAnimatorTestApi() override; |
32 | 32 |
33 // Wrapper functions for ScreenRotationAnimator. | 33 // Wrapper functions for ScreenRotationAnimator. |
34 ui::Layer* GetOldLayerTreeRootLayer(); | 34 ui::Layer* GetOldLayerTreeRootLayer(); |
35 void DisableAnimationTimers(); | 35 void DisableAnimationTimers(); |
| 36 void EnableSmoothRotation(); |
36 | 37 |
37 private: | 38 private: |
38 // MultiLayerAnimatorTestControllerDelegate: | 39 // MultiLayerAnimatorTestControllerDelegate: |
39 std::vector<ui::LayerAnimator*> GetLayerAnimators() override; | 40 std::vector<ui::LayerAnimator*> GetLayerAnimators() override; |
40 | 41 |
41 ScreenRotationAnimator* animator_; | 42 ScreenRotationAnimator* animator_; |
42 | 43 |
43 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimatorTestApi); | 44 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimatorTestApi); |
44 }; | 45 }; |
45 | 46 |
46 } // namespace test | 47 } // namespace test |
47 } // namespace ash | 48 } // namespace ash |
48 | 49 |
49 #endif // ASH_ROTATOR_TEST_SCREEN_ROTATION_ANIMATOR_TEST_API_H_ | 50 #endif // ASH_ROTATOR_TEST_SCREEN_ROTATION_ANIMATOR_TEST_API_H_ |
OLD | NEW |