| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SCREEN_ROTATION_ANIMATOR_H_ | 5 #ifndef ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ |
| 6 #define ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ | 6 #define ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "ui/display/display.h" | 15 #include "ui/display/display.h" |
| 16 | 16 |
| 17 namespace aura { | |
| 18 class Window; | |
| 19 } // namesapce aura | |
| 20 | |
| 21 namespace cc { | 17 namespace cc { |
| 22 class CopyOutputRequest; | 18 class CopyOutputRequest; |
| 23 class CopyOutputResult; | 19 class CopyOutputResult; |
| 24 } // namespace cc | 20 } // namespace cc |
| 25 | 21 |
| 26 namespace ui { | 22 namespace ui { |
| 27 class AnimationMetricsReporter; | 23 class AnimationMetricsReporter; |
| 28 class Layer; | |
| 29 class LayerOwner; | 24 class LayerOwner; |
| 30 class LayerTreeOwner; | 25 class LayerTreeOwner; |
| 31 } // namespace ui | 26 } // namespace ui |
| 32 | 27 |
| 33 namespace ash { | 28 namespace ash { |
| 34 namespace test { | 29 namespace test { |
| 35 class ScreenRotationAnimatorTestApi; | 30 class ScreenRotationAnimatorTestApi; |
| 36 } // namespace test | 31 } // namespace test |
| 37 | 32 |
| 38 class ScreenRotationAnimatorObserver; | 33 class ScreenRotationAnimatorObserver; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 std::unique_ptr<ui::AnimationMetricsReporter> metrics_reporter_; | 165 std::unique_ptr<ui::AnimationMetricsReporter> metrics_reporter_; |
| 171 // Only set in unittest to disable animation timers. | 166 // Only set in unittest to disable animation timers. |
| 172 bool disable_animation_timers_for_test_; | 167 bool disable_animation_timers_for_test_; |
| 173 base::ObserverList<ScreenRotationAnimatorObserver> | 168 base::ObserverList<ScreenRotationAnimatorObserver> |
| 174 screen_rotation_animator_observers_; | 169 screen_rotation_animator_observers_; |
| 175 std::unique_ptr<ui::LayerTreeOwner> old_layer_tree_owner_; | 170 std::unique_ptr<ui::LayerTreeOwner> old_layer_tree_owner_; |
| 176 std::unique_ptr<ui::LayerTreeOwner> new_layer_tree_owner_; | 171 std::unique_ptr<ui::LayerTreeOwner> new_layer_tree_owner_; |
| 177 std::unique_ptr<ui::LayerOwner> black_mask_layer_owner_; | 172 std::unique_ptr<ui::LayerOwner> black_mask_layer_owner_; |
| 178 std::unique_ptr<ScreenRotationRequest> last_pending_request_; | 173 std::unique_ptr<ScreenRotationRequest> last_pending_request_; |
| 179 bool has_switch_ash_disable_smooth_screen_rotation_; | 174 bool has_switch_ash_disable_smooth_screen_rotation_; |
| 180 aura::Window* root_window_; | |
| 181 ui::Layer* screen_rotation_container_layer_; | |
| 182 base::WeakPtrFactory<ScreenRotationAnimator> weak_factory_; | 175 base::WeakPtrFactory<ScreenRotationAnimator> weak_factory_; |
| 183 | 176 |
| 184 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimator); | 177 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimator); |
| 185 }; | 178 }; |
| 186 | 179 |
| 187 } // namespace ash | 180 } // namespace ash |
| 188 | 181 |
| 189 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ | 182 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ |
| OLD | NEW |