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

Side by Side Diff: ui/gfx/compositor/layer_animation_sequence.h

Issue 8400059: Revert 107715 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_GFX_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ 5 #ifndef UI_GFX_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_
6 #define UI_GFX_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ 6 #define UI_GFX_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 LayerAnimationSequence(); 30 LayerAnimationSequence();
31 // Takes ownership of the given element and adds it to the sequence. 31 // Takes ownership of the given element and adds it to the sequence.
32 explicit LayerAnimationSequence(LayerAnimationElement* element); 32 explicit LayerAnimationSequence(LayerAnimationElement* element);
33 virtual ~LayerAnimationSequence(); 33 virtual ~LayerAnimationSequence();
34 34
35 // Updates the delegate to the appropriate value for |elapsed|, which is in 35 // Updates the delegate to the appropriate value for |elapsed|, which is in
36 // the range [0, Duration()]. If the animation is not aborted, it is 36 // the range [0, Duration()]. If the animation is not aborted, it is
37 // guaranteed that Animate will be called with elapsed = Duration(). 37 // guaranteed that Animate will be called with elapsed = Duration().
38 void Progress(base::TimeDelta elapsed, LayerAnimationDelegate* delegate); 38 void Progress(base::TimeDelta elapsed, LayerAnimationDelegate* delegate);
39 39
40 // Sets the target value to the value that would have been set had
41 // the sequence completed. Does nothing if the sequence is cyclic.
42 void GetTargetValue(LayerAnimationElement::TargetValue* target) const;
43
44 // Aborts the given animation. 40 // Aborts the given animation.
45 void Abort(); 41 void Abort();
46 42
47 // All properties modified by the sequence. 43 // All properties modified by the sequence.
48 const LayerAnimationElement::AnimatableProperties& properties() const { 44 const LayerAnimationElement::AnimatableProperties& properties() const {
49 return properties_; 45 return properties_;
50 } 46 }
51 47
52 // The total, finite duration of one cycle of the sequence. 48 // The total, finite duration of one cycle of the sequence.
53 base::TimeDelta duration() const { 49 base::TimeDelta duration() const {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // These are used when animating to efficiently find the next element. 81 // These are used when animating to efficiently find the next element.
86 size_t last_element_; 82 size_t last_element_;
87 base::TimeDelta last_start_; 83 base::TimeDelta last_start_;
88 84
89 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence); 85 DISALLOW_COPY_AND_ASSIGN(LayerAnimationSequence);
90 }; 86 };
91 87
92 } // namespace ui 88 } // namespace ui
93 89
94 #endif // UI_GFX_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_ 90 #endif // UI_GFX_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_
OLDNEW
« no previous file with comments | « ui/gfx/compositor/layer_animation_manager.cc ('k') | ui/gfx/compositor/layer_animation_sequence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698