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

Side by Side Diff: ui/base/animation/throb_animation.h

Issue 6154001: Move animation code to new ui/base/animation directory.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/animation/test_animation_delegate.h ('k') | ui/base/animation/throb_animation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/base/animation/test_animation_delegate.h ('k') | ui/base/animation/throb_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698