Revert of Add Masonry to key_silk_cases. (patchset #3 id:40001 of https://codereview...
[chromium-blink-merge.git] / ui / gfx / animation / animation_delegate.h
blobb1e88d2fdac2f215afbf36f1f4c368a7cbac50cc
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
3 // found in the LICENSE file.
5 #ifndef UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_
6 #define UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_
8 #include "ui/gfx/gfx_export.h"
10 namespace gfx {
12 class Animation;
14 // AnimationDelegate
16 // Implement this interface when you want to receive notifications about the
17 // state of an animation.
18 class GFX_EXPORT AnimationDelegate {
19 public:
20 virtual ~AnimationDelegate() {}
22 // Called when an animation has completed.
23 virtual void AnimationEnded(const Animation* animation) {}
25 // Called when an animation has progressed.
26 virtual void AnimationProgressed(const Animation* animation) {}
28 // Called when an animation has been canceled.
29 virtual void AnimationCanceled(const Animation* animation) {}
32 } // namespace gfx
34 #endif // UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_