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

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

Issue 8362006: Reland r107720 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with parent patch Created 9 years, 2 months 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_TEST_LAYER_ANIMATION_DELEGATE_H_ 5 #ifndef UI_GFX_COMPOSITOR_DUMMY_LAYER_ANIMATION_DELEGATE_H_
6 #define UI_GFX_COMPOSITOR_TEST_LAYER_ANIMATION_DELEGATE_H_ 6 #define UI_GFX_COMPOSITOR_DUMMY_LAYER_ANIMATION_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "ui/gfx/transform.h" 11 #include "ui/gfx/transform.h"
12 #include "ui/gfx/compositor/compositor_export.h"
12 #include "ui/gfx/compositor/layer_animation_delegate.h" 13 #include "ui/gfx/compositor/layer_animation_delegate.h"
13 14
14 namespace ui { 15 namespace ui {
15 16
16 class TestLayerAnimationDelegate : public LayerAnimationDelegate { 17 class COMPOSITOR_EXPORT DummyLayerAnimationDelegate
sky 2011/10/20 20:30:30 Why are you renaming this? Test is a better name t
18 : public LayerAnimationDelegate {
17 public: 19 public:
18 TestLayerAnimationDelegate(); 20 DummyLayerAnimationDelegate();
19 virtual ~TestLayerAnimationDelegate(); 21 DummyLayerAnimationDelegate(const LayerAnimationDelegate& other);
22 virtual ~DummyLayerAnimationDelegate();
20 23
21 // Implementation of LayerAnimationDelegate 24 // Implementation of LayerAnimationDelegate
22 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) OVERRIDE; 25 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) OVERRIDE;
23 virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE; 26 virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE;
24 virtual void SetOpacityFromAnimation(float opacity) OVERRIDE; 27 virtual void SetOpacityFromAnimation(float opacity) OVERRIDE;
25 virtual void ScheduleDrawForAnimation() OVERRIDE; 28 virtual void ScheduleDrawForAnimation() OVERRIDE;
26 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE; 29 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE;
27 virtual const Transform& GetTransformForAnimation() const OVERRIDE; 30 virtual const Transform& GetTransformForAnimation() const OVERRIDE;
28 virtual float GetOpacityForAnimation() const OVERRIDE; 31 virtual float GetOpacityForAnimation() const OVERRIDE;
29 32
30 private: 33 private:
31 gfx::Rect bounds_; 34 gfx::Rect bounds_;
32 Transform transform_; 35 Transform transform_;
33 float opacity_; 36 float opacity_;
34 37
35 // Allow copy and assign. 38 // Allow copy and assign.
36 }; 39 };
37 40
38 } // namespace ui 41 } // namespace ui
39 42
40 #endif // UI_GFX_COMPOSITOR_TEST_LAYER_ANIMATION_DELEGATE_H_ 43 #endif // UI_GFX_COMPOSITOR_DUMMY_LAYER_ANIMATION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698