diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-19 20:46:07 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-19 20:46:07 +0000 |
commit | 7edf5b5462727c06c0232b541c5db549f176d84a (patch) | |
tree | 4a4ac06d13b40e52180ecd6a1fa7c9be977c14f3 /app/multi_animation.h | |
parent | 948ab987c4bdc1a63a54434276d68bc68b3a0e07 (diff) | |
download | chromium_src-7edf5b5462727c06c0232b541c5db549f176d84a.zip chromium_src-7edf5b5462727c06c0232b541c5db549f176d84a.tar.gz chromium_src-7edf5b5462727c06c0232b541c5db549f176d84a.tar.bz2 |
Tweaks the pinned background tab title change animation per Nicholas's
request.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3041006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/multi_animation.h')
-rw-r--r-- | app/multi_animation.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/app/multi_animation.h b/app/multi_animation.h index ac0ab84..7c9ca6d 100644 --- a/app/multi_animation.h +++ b/app/multi_animation.h @@ -16,11 +16,28 @@ // invoked. class MultiAnimation : public Animation { public: + // Defines part of the animation. Each part consists of the following: + // + // time_ms: the time of the part. + // start_time_ms: the amount of time to offset this part by when calculating + // the percented completed. + // end_time_ms: the end time used to calculate the percentange completed. + // + // In most cases |start_time_ms| = 0 and |end_time_ms| = |time_ms|. But you + // can adjust the start/end for different effects. For example, to run a part + // for 200ms with a % between .25 and .75 use the following three values: 200, + // 100, 400. struct Part { - Part() : time_ms(0), type(Tween::ZERO) {} - Part(int time_ms, Tween::Type type) : time_ms(time_ms), type(type) {} + Part() : time_ms(0), start_time_ms(0), end_time_ms(0), type(Tween::ZERO) {} + Part(int time_ms, Tween::Type type) + : time_ms(time_ms), + start_time_ms(0), + end_time_ms(time_ms), + type(type) {} int time_ms; + int start_time_ms; + int end_time_ms; Tween::Type type; }; |