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

Unified Diff: chrome/browser/ui/autofill/loading_animation.h

Issue 73723002: [rAc OSX] Animate the dots in the "Loading ..." message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and add a missing semicolon Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/loading_animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/loading_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698