diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-07 17:33:39 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-07 17:33:39 +0000 |
commit | f676780687464428e340d008a0d1ca13d9944628 (patch) | |
tree | 489e8bd8188e31a7f6c53f15e8d1d9c6ba36d023 /ui/base/animation/animation_container_observer.h | |
parent | 3b65bfd55c56cf8a6db025087d937494f49dc15f (diff) | |
download | chromium_src-f676780687464428e340d008a0d1ca13d9944628.zip chromium_src-f676780687464428e340d008a0d1ca13d9944628.tar.gz chromium_src-f676780687464428e340d008a0d1ca13d9944628.tar.bz2 |
Move animation code to new ui/base/animation directory.
BUG=none
TEST=none
TBR=brettw
Review URL: http://codereview.chromium.org/6154001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70743 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/animation/animation_container_observer.h')
-rw-r--r-- | ui/base/animation/animation_container_observer.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ui/base/animation/animation_container_observer.h b/ui/base/animation/animation_container_observer.h new file mode 100644 index 0000000..b01a476 --- /dev/null +++ b/ui/base/animation/animation_container_observer.h @@ -0,0 +1,31 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef UI_BASE_ANIMATION_ANIMATION_CONTAINER_OBSERVER_H_ +#define UI_BASE_ANIMATION_ANIMATION_CONTAINER_OBSERVER_H_ +#pragma once + +namespace ui { + +class AnimationContainer; + +// The observer is notified after every update of the animations managed by +// the container. +class AnimationContainerObserver { + public: + // Invoked on every tick of the timer managed by the container and after + // all the animations have updated. + virtual void AnimationContainerProgressed( + AnimationContainer* container) = 0; + + // Invoked when no more animations are being managed by this container. + virtual void AnimationContainerEmpty(AnimationContainer* container) = 0; + + protected: + virtual ~AnimationContainerObserver() {} +}; + +} // namespace ui + +#endif // UI_BASE_ANIMATION_ANIMATION_CONTAINER_OBSERVER_H_ |