| 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 29 matching lines...) Expand all Loading... |
| 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::LayerAnimationDelegate |
| 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 bool AreStartAndTargetSame() override; |
| 50 | 51 |
| 51 // The root InterpolatedTransform that defines the animation. | 52 // The root InterpolatedTransform that defines the animation. |
| 52 std::unique_ptr<ui::InterpolatedTransform> interpolated_transform_; | 53 std::unique_ptr<ui::InterpolatedTransform> interpolated_transform_; |
| 53 | 54 |
| 54 // The Tween type to use for the animation. | 55 // The Tween type to use for the animation. |
| 55 gfx::Tween::Type tween_type_; | 56 gfx::Tween::Type tween_type_; |
| 56 | 57 |
| 57 // The initial layer opacity to start the animation with. | 58 // The initial layer opacity to start the animation with. |
| 58 float initial_opacity_; | 59 float initial_opacity_; |
| 59 | 60 |
| 60 // The target layer opacity to end the animation with. | 61 // The target layer opacity to end the animation with. |
| 61 float target_opacity_; | 62 float target_opacity_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimation); | 64 DISALLOW_COPY_AND_ASSIGN(ScreenRotationAnimation); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace ash | 67 } // namespace ash |
| 67 | 68 |
| 68 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATION_H_ | 69 #endif // ASH_ROTATOR_SCREEN_ROTATION_ANIMATION_H_ |
| OLD | NEW |