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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 RestartOnceTimerIfNotPaused, 91 RestartOnceTimerIfNotPaused,
92 // Restart OnceTimer. 92 // Restart OnceTimer.
93 RestartOnceTimer, 93 RestartOnceTimer,
94 // Cancel OnceTimer. 94 // Cancel OnceTimer.
95 CancelOnceTimer 95 CancelOnceTimer
96 }; 96 };
97 97
98 bool isTimelineRunning() const; 98 bool isTimelineRunning() const;
99 void scheduleAnimationFrame(SMILTime fireTime); 99 void scheduleAnimationFrame(SMILTime fireTime);
100 void cancelAnimationFrame(); 100 void cancelAnimationFrame();
101 void wakeupTimerFired(Timer<SMILTimeContainer>*); 101 void wakeupTimerFired(TimerBase*);
102 void scheduleAnimationPolicyTimer(); 102 void scheduleAnimationPolicyTimer();
103 void cancelAnimationPolicyTimer(); 103 void cancelAnimationPolicyTimer();
104 void animationPolicyTimerFired(Timer<SMILTimeContainer>*); 104 void animationPolicyTimerFired(TimerBase*);
105 ImageAnimationPolicy animationPolicy() const; 105 ImageAnimationPolicy animationPolicy() const;
106 bool handleAnimationPolicy(AnimationPolicyOnceAction); 106 bool handleAnimationPolicy(AnimationPolicyOnceAction);
107 void updateAnimationsAndScheduleFrameIfNeeded(SMILTime elapsed, bool seekToT ime = false); 107 void updateAnimationsAndScheduleFrameIfNeeded(SMILTime elapsed, bool seekToT ime = false);
108 SMILTime updateAnimations(SMILTime elapsed, bool seekToTime = false); 108 SMILTime updateAnimations(SMILTime elapsed, bool seekToTime = false);
109 void serviceOnNextFrame(); 109 void serviceOnNextFrame();
110 void scheduleWakeUp(double delayTime, FrameSchedulingState); 110 void scheduleWakeUp(double delayTime, FrameSchedulingState);
111 bool hasPendingSynchronization() const; 111 bool hasPendingSynchronization() const;
112 112
113 void updateDocumentOrderIndexes(); 113 void updateDocumentOrderIndexes();
114 double lastResumeTime() const { return m_resumeTime ? m_resumeTime : m_begin Time; } 114 double lastResumeTime() const { return m_resumeTime ? m_resumeTime : m_begin Time; }
(...skipping 21 matching lines...) Expand all
136 136
137 Member<SVGSVGElement> m_ownerSVGElement; 137 Member<SVGSVGElement> m_ownerSVGElement;
138 138
139 #if ENABLE(ASSERT) 139 #if ENABLE(ASSERT)
140 bool m_preventScheduledAnimationsChanges; 140 bool m_preventScheduledAnimationsChanges;
141 #endif 141 #endif
142 }; 142 };
143 } // namespace blink 143 } // namespace blink
144 144
145 #endif // SMILTimeContainer_h 145 #endif // SMILTimeContainer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.cpp ('k') | third_party/WebKit/Source/core/svg/animation/SMILTimeContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698