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" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 std::unique_ptr<ui::AnimationMetricsReporter> metrics_reporter_; | 170 std::unique_ptr<ui::AnimationMetricsReporter> metrics_reporter_; |
171 // Only set in unittest to disable animation timers. | 171 // Only set in unittest to disable animation timers. |
172 bool disable_animation_timers_for_test_; | 172 bool disable_animation_timers_for_test_; |
173 base::ObserverList<ScreenRotationAnimatorObserver> | 173 base::ObserverList<ScreenRotationAnimatorObserver> |
174 screen_rotation_animator_observers_; | 174 screen_rotation_animator_observers_; |
175 std::unique_ptr<ui::LayerTreeOwner> old_layer_tree_owner_; | 175 std::unique_ptr<ui::LayerTreeOwner> old_layer_tree_owner_; |
176 std::unique_ptr<ui::LayerTreeOwner> new_layer_tree_owner_; | 176 std::unique_ptr<ui::LayerTreeOwner> new_layer_tree_owner_; |
177 std::unique_ptr<ui::LayerOwner> black_mask_layer_owner_; | 177 std::unique_ptr<ui::LayerOwner> black_mask_layer_owner_; |
178 std::unique_ptr<ScreenRotationRequest> last_pending_request_; | 178 std::unique_ptr<ScreenRotationRequest> last_pending_request_; |
179 bool has_switch_ash_enable_smooth_screen_rotation_; | 179 bool has_switch_ash_disable_smooth_screen_rotation_; |
180 aura::Window* root_window_; | 180 aura::Window* root_window_; |
181 ui::Layer* screen_rotation_container_layer_; | 181 ui::Layer* screen_rotation_container_layer_; |
182 base::WeakPtrFactory<ScreenRotationAnimator> weak_factory_; | 182 base::WeakPtrFactory<ScreenRotationAnimator> weak_factory_; |
183 | 183 |
184 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimator); | 184 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimator); |
185 }; | 185 }; |
186 | 186 |
187 } // namespace ash | 187 } // namespace ash |
188 | 188 |
189 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ | 189 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATOR_H_ |
OLD | NEW |