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

Side by Side Diff: ui/gfx/compositor/dummy_layer_animation_delegate.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_DUMMY_LAYER_ANIMATION_DELEGATE_H_
6 #define UI_GFX_COMPOSITOR_DUMMY_LAYER_ANIMATION_DELEGATE_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "ui/gfx/rect.h"
11 #include "ui/gfx/transform.h"
12 #include "ui/gfx/compositor/compositor_export.h"
13 #include "ui/gfx/compositor/layer_animator_delegate.h"
14
15 namespace ui {
16
17 class LayerAnimationSequence;
18
19 class COMPOSITOR_EXPORT DummyLayerAnimationDelegate
20 : public LayerAnimatorDelegate {
21 public:
22 DummyLayerAnimationDelegate();
23 DummyLayerAnimationDelegate(const LayerAnimationDelegate& other);
24 virtual ~DummyLayerAnimationDelegate();
25
26 // Implementation of LayerAnimationDelegate
27 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) OVERRIDE;
28 virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE;
29 virtual void SetOpacityFromAnimation(float opacity) OVERRIDE;
30 virtual void ScheduleDrawForAnimation() OVERRIDE;
31 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE;
32 virtual const Transform& GetTransformForAnimation() const OVERRIDE;
33 virtual float GetOpacityForAnimation() const OVERRIDE;
34
35 // Implementation of LayerAnimatorDelegate
36 virtual void OnLayerAnimationEnded(LayerAnimationSequence* sequence) OVERRIDE;
37
38 private:
39 gfx::Rect bounds_;
40 Transform transform_;
41 float opacity_;
42
43 // Allow copy and assign.
44 };
45
46 } // namespace ui
47
48 #endif // UI_GFX_COMPOSITOR_DUMMY_LAYER_ANIMATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698