diff options
Diffstat (limited to 'chrome/common/animation.h')
-rw-r--r-- | chrome/common/animation.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/common/animation.h b/chrome/common/animation.h index 657512a..0b4dc6a 100644 --- a/chrome/common/animation.h +++ b/chrome/common/animation.h @@ -90,8 +90,8 @@ class Animation { void SetDuration(int duration); protected: - // Called when the animation's timer expires. - void Run(); + // Overriddable, called by Run. + virtual void Step(); // Calculates the timer interval from the constructor list. int CalculateInterval(int frame_rate); @@ -112,6 +112,10 @@ class Animation { base::RepeatingTimer<Animation> timer_; + private: + // Called when the animation's timer expires, calls Step. + void Run(); + DISALLOW_EVIL_CONSTRUCTORS(Animation); }; |