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

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: merge with master 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
1 // Copyright (c) 2011 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 UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_ 5 #ifndef UI_GFX_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
6 #define UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_ 6 #define UI_GFX_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/gfx/rect.h"
10 #include "ui/gfx/transform.h"
11 #include "ui/gfx/compositor/compositor_export.h" 9 #include "ui/gfx/compositor/compositor_export.h"
12 #include "ui/gfx/compositor/layer_animation_delegate.h"
13 10
14 namespace ui { 11 namespace ui {
15 12
16 class LayerAnimationSequence; 13 class LayerAnimationSequence;
17 14
18 // Layer animators interact with the layers using this interface. 15 // LayerAnimationObservers are notified when animations complete.
19 class COMPOSITOR_EXPORT LayerAnimatorDelegate : public LayerAnimationDelegate { 16 class COMPOSITOR_EXPORT LayerAnimationObserver {
20 public: 17 public:
21 // Called when the |sequence| ends. Not called if |sequence| is aborted. 18 // Called when the |sequence| ends. Not called if |sequence| is aborted.
22 virtual void OnLayerAnimationEnded(LayerAnimationSequence* sequence) = 0; 19 virtual void OnLayerAnimationEnded(
20 const LayerAnimationSequence* sequence) = 0;
23 21
24 // if this becomes necessary, this would be the appropriate place to add 22 // if this becomes necessary, this would be the appropriate place to add
sky 2011/10/27 19:29:19 Remove this comment.
25 // notifications about elements starting or ending, or sequences starting. 23 // notifications about elements starting or ending, or sequences starting.
26 24
27 protected: 25 protected:
28 virtual ~LayerAnimatorDelegate() {} 26 virtual ~LayerAnimationObserver() {}
29 }; 27 };
30 28
31 } // namespace ui 29 } // namespace ui
32 30
33 #endif // UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_ 31 #endif // UI_GFX_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698