| 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_ANIMATION_H_ | 5 #ifndef ASH_ROTATOR_SCREEN_ROTATION_ANIMATION_H_ |
| 6 #define ASH_ROTATOR_SCREEN_ROTATION_ANIMATION_H_ | 6 #define ASH_ROTATOR_SCREEN_ROTATION_ANIMATION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 int start_degrees, | 34 int start_degrees, |
| 35 int end_degrees, | 35 int end_degrees, |
| 36 float initial_opacity, | 36 float initial_opacity, |
| 37 float target_opacity, | 37 float target_opacity, |
| 38 gfx::Point pivot, | 38 gfx::Point pivot, |
| 39 base::TimeDelta duration, | 39 base::TimeDelta duration, |
| 40 gfx::Tween::Type twen_type); | 40 gfx::Tween::Type twen_type); |
| 41 ~ScreenRotationAnimation() override; | 41 ~ScreenRotationAnimation() override; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 // Implementation of ui::LayerAnimationDelegate | 44 // Implementation of ui::LayerAnimationElement: |
| 45 void OnStart(ui::LayerAnimationDelegate* delegate) override; | 45 void OnStart(ui::LayerAnimationDelegate* delegate) override; |
| 46 bool OnProgress(double current, | 46 bool OnProgress(double current, |
| 47 ui::LayerAnimationDelegate* delegate) override; | 47 ui::LayerAnimationDelegate* delegate) override; |
| 48 void OnGetTarget(TargetValue* target) const override; | 48 void OnGetTarget(TargetValue* target) const override; |
| 49 void OnAbort(ui::LayerAnimationDelegate* delegate) override; | 49 void OnAbort(ui::LayerAnimationDelegate* delegate) override; |
| 50 | 50 |
| 51 // The root InterpolatedTransform that defines the animation. | 51 // The root InterpolatedTransform that defines the animation. |
| 52 std::unique_ptr<ui::InterpolatedTransform> interpolated_transform_; | 52 std::unique_ptr<ui::InterpolatedTransform> interpolated_transform_; |
| 53 | 53 |
| 54 // The Tween type to use for the animation. | 54 // The Tween type to use for the animation. |
| 55 gfx::Tween::Type tween_type_; | 55 gfx::Tween::Type tween_type_; |
| 56 | 56 |
| 57 // The initial layer opacity to start the animation with. | 57 // The initial layer opacity to start the animation with. |
| 58 float initial_opacity_; | 58 float initial_opacity_; |
| 59 | 59 |
| 60 // The target layer opacity to end the animation with. | 60 // The target layer opacity to end the animation with. |
| 61 float target_opacity_; | 61 float target_opacity_; |
| 62 | 62 |
| 63 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimation); | 63 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimation); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace ash | 66 } // namespace ash |
| 67 | 67 |
| 68 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATION_H_ | 68 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATION_H_ |
| OLD | NEW |