OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef APP_THROB_ANIMATION_H_ | 5 #ifndef UI_BASE_ANIMATION_THROB_ANIMATION_H_ |
6 #define APP_THROB_ANIMATION_H_ | 6 #define UI_BASE_ANIMATION_THROB_ANIMATION_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/slide_animation.h" | 9 #include "ui/base/animation/slide_animation.h" |
| 10 |
| 11 namespace ui { |
10 | 12 |
11 // A subclass of SlideAnimation that can continually slide. All of the Animation | 13 // A subclass of SlideAnimation that can continually slide. All of the Animation |
12 // methods behave like that of SlideAnimation: transition to the next state. | 14 // methods behave like that of SlideAnimation: transition to the next state. |
13 // The StartThrobbing method causes the ThrobAnimation to cycle between hidden | 15 // The StartThrobbing method causes the ThrobAnimation to cycle between hidden |
14 // and shown for a set number of cycles. | 16 // and shown for a set number of cycles. |
15 // | 17 // |
16 // A ThrobAnimation has two durations: the duration used when behavior like | 18 // A ThrobAnimation has two durations: the duration used when behavior like |
17 // a SlideAnimation, and the duration used when throbbing. | 19 // a SlideAnimation, and the duration used when throbbing. |
18 class ThrobAnimation : public SlideAnimation { | 20 class ThrobAnimation : public SlideAnimation { |
19 public: | 21 public: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 57 |
56 // If throbbing, this is the number of cycles left. | 58 // If throbbing, this is the number of cycles left. |
57 int cycles_remaining_; | 59 int cycles_remaining_; |
58 | 60 |
59 // Are we throbbing? | 61 // Are we throbbing? |
60 bool throbbing_; | 62 bool throbbing_; |
61 | 63 |
62 DISALLOW_COPY_AND_ASSIGN(ThrobAnimation); | 64 DISALLOW_COPY_AND_ASSIGN(ThrobAnimation); |
63 }; | 65 }; |
64 | 66 |
65 #endif // APP_THROB_ANIMATION_H_ | 67 } // namespace ui |
| 68 |
| 69 #endif // UI_BASE_ANIMATION_THROB_ANIMATION_H_ |
OLD | NEW |