| Index: chrome/browser/ui/autofill/loading_animation.h
|
| diff --git a/chrome/browser/ui/autofill/loading_animation.h b/chrome/browser/ui/autofill/loading_animation.h
|
| index d55fd7bde0d00d9c48d9e965053e43355d99ec1b..7dec09aaab84ec94aa621497acad0f297c56c713 100644
|
| --- a/chrome/browser/ui/autofill/loading_animation.h
|
| +++ b/chrome/browser/ui/autofill/loading_animation.h
|
| @@ -12,14 +12,15 @@ namespace autofill {
|
| // An animation for a dancing ellipsis.
|
| class LoadingAnimation : public gfx::LinearAnimation {
|
| public:
|
| - explicit LoadingAnimation(gfx::AnimationDelegate* delegate);
|
| + explicit LoadingAnimation(gfx::AnimationDelegate* delegate,
|
| + int font_height);
|
| virtual ~LoadingAnimation();
|
|
|
| // gfx::Animation implementation.
|
| virtual void Step(base::TimeTicks time_now) OVERRIDE;
|
|
|
| // Returns the vertical pixel offset for the nth dot.
|
| - double GetCurrentValueForDot(size_t dot_i);
|
| + double GetCurrentValueForDot(size_t dot_i) const;
|
|
|
| // Stops this animation. Use this instead of Stop() to make sure future
|
| // runs don't mess up on the first cycle.
|
| @@ -34,6 +35,10 @@ class LoadingAnimation : public gfx::LinearAnimation {
|
|
|
| // True if the current cycle is the first one since Reset() was last called.
|
| bool first_cycle_;
|
| +
|
| + // The font height of the loading text, which gives the factor by which to
|
| + // scale the animation.
|
| + const int font_height_;
|
| };
|
|
|
| } // namespace autofill
|
|
|