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

Side by Side Diff: third_party/WebKit/Source/core/animation/AnimationTimeline.h

Issue 2952783002: Make AnimationTimeline.currentTime readonly (Closed)
Patch Set: Delete obsolete setCurrentTime* methods Created 3 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 bool IsActive(); 81 bool IsActive();
82 bool HasPendingUpdates() const { 82 bool HasPendingUpdates() const {
83 return !animations_needing_update_.IsEmpty(); 83 return !animations_needing_update_.IsEmpty();
84 } 84 }
85 double ZeroTime(); 85 double ZeroTime();
86 double currentTime(bool& is_null); 86 double currentTime(bool& is_null);
87 double currentTime(); 87 double currentTime();
88 double CurrentTimeInternal(bool& is_null); 88 double CurrentTimeInternal(bool& is_null);
89 double CurrentTimeInternal(); 89 double CurrentTimeInternal();
90 void setCurrentTime(double, bool is_null);
91 void SetCurrentTimeInternal(double);
92 double EffectiveTime(); 90 double EffectiveTime();
93 void PauseAnimationsForTesting(double); 91 void PauseAnimationsForTesting(double);
94 92
95 void SetAllCompositorPending(bool source_changed = false); 93 void SetAllCompositorPending(bool source_changed = false);
96 void SetOutdatedAnimation(Animation*); 94 void SetOutdatedAnimation(Animation*);
97 void ClearOutdatedAnimation(Animation*); 95 void ClearOutdatedAnimation(Animation*);
98 bool HasOutdatedAnimation() const { return outdated_animation_count_ > 0; } 96 bool HasOutdatedAnimation() const { return outdated_animation_count_ > 0; }
99 bool NeedsAnimationTimingUpdate(); 97 bool NeedsAnimationTimingUpdate();
100 void InvalidateKeyframeEffects(const TreeScope&); 98 void InvalidateKeyframeEffects(const TreeScope&);
101 99
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 Member<AnimationTimeline> timeline_; 155 Member<AnimationTimeline> timeline_;
158 TaskRunnerTimer<AnimationTimelineTiming> timer_; 156 TaskRunnerTimer<AnimationTimelineTiming> timer_;
159 }; 157 };
160 158
161 friend class AnimationAnimationTimelineTest; 159 friend class AnimationAnimationTimelineTest;
162 }; 160 };
163 161
164 } // namespace blink 162 } // namespace blink
165 163
166 #endif 164 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698