1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_LOADING_ANIMATION_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_LOADING_ANIMATION_H_
8 #include "ui/gfx/animation/linear_animation.h"
12 // An animation for a dancing ellipsis.
13 class LoadingAnimation : public gfx::LinearAnimation {
15 explicit LoadingAnimation(gfx::AnimationDelegate* delegate);
16 virtual ~LoadingAnimation();
18 // gfx::Animation implementation.
19 virtual void Step(base::TimeTicks time_now) OVERRIDE;
21 // Returns the vertical pixel offset for the nth dot.
22 double GetCurrentValueForDot(size_t dot_i);
24 // Stops this animation. Use this instead of Stop() to make sure future
25 // runs don't mess up on the first cycle.
29 // Describes a frame of the animation, a la -webkit-keyframes.
30 struct AnimationFrame {
35 // True if the current cycle is the first one since Reset() was last called.
39 } // namespace autofill
41 #endif // CHROME_BROWSER_UI_AUTOFILL_LOADING_ANIMATION_H_