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

Side by Side Diff: ui/gfx/compositor/layer_animation_observer.h

Issue 8395046: Allows observers to be notified when layer animations complete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 9 years, 1 month 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
OLDNEW
(Empty)
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.
4
5 #ifndef UI_GFX_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
6 #define UI_GFX_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
7 #pragma once
8
9 #include "ui/gfx/compositor/compositor_export.h"
10
11 namespace ui {
12
13 class LayerAnimationSequence;
14
15 // LayerAnimationObservers are notified when animations complete.
16 class COMPOSITOR_EXPORT LayerAnimationObserver {
17 public:
18 // Called when the |sequence| ends. Not called if |sequence| is aborted.
19 virtual void OnLayerAnimationEnded(
20 const LayerAnimationSequence* sequence) = 0;
sky 2011/10/28 22:11:38 Most folks are only going to care about ended. Bec
21
22 // Called if |sequence| is aborted for any reason.
23 virtual void OnLayerAnimationAborted(
24 const LayerAnimationSequence* sequence) = 0;
25
26 // Called when the animation is scheduled.
27 virtual void OnLayerAnimationScheduled(
28 const LayerAnimationSequence* sequence) = 0;
29
30 protected:
31 virtual ~LayerAnimationObserver() {}
32 };
33
34 } // namespace ui
35
36 #endif // UI_GFX_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698