Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(582)

Side by Side Diff: ash/rotator/screen_rotation_animation.h

Issue 2291923002: Check target value
Patch Set: Test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/rotator/screen_rotation_animation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/rotator/screen_rotation_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698