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

Side by Side Diff: cc/layer_animation_controller.h

Issue 11308153: Migrate most of cc/ from WebKit::WebTransformationMatrix to gfx::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing Created 8 years 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
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_animation_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_LAYER_ANIMATION_CONTROLLER_H_ 5 #ifndef CC_LAYER_ANIMATION_CONTROLLER_H_
6 #define CC_LAYER_ANIMATION_CONTROLLER_H_ 6 #define CC_LAYER_ANIMATION_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "cc/animation_events.h" 11 #include "cc/animation_events.h"
12 #include "cc/cc_export.h" 12 #include "cc/cc_export.h"
13 #include "cc/scoped_ptr_vector.h" 13 #include "cc/scoped_ptr_vector.h"
14 14
15 namespace WebKit { 15 namespace gfx {
16 class WebTransformationMatrix; 16 class Transform;
17 } 17 }
18 18
19 namespace cc { 19 namespace cc {
20 20
21 class Animation; 21 class Animation;
22 class KeyframeValueList; 22 class KeyframeValueList;
23 23
24 class CC_EXPORT LayerAnimationControllerClient { 24 class CC_EXPORT LayerAnimationControllerClient {
25 public: 25 public:
26 virtual ~LayerAnimationControllerClient() { } 26 virtual ~LayerAnimationControllerClient() { }
27 27
28 virtual int id() const = 0; 28 virtual int id() const = 0;
29 virtual void setOpacityFromAnimation(float) = 0; 29 virtual void setOpacityFromAnimation(float) = 0;
30 virtual float opacity() const = 0; 30 virtual float opacity() const = 0;
31 virtual void setTransformFromAnimation(const WebKit::WebTransformationMatrix &) = 0; 31 virtual void setTransformFromAnimation(const gfx::Transform&) = 0;
32 virtual const WebKit::WebTransformationMatrix& transform() const = 0; 32 virtual const gfx::Transform& transform() const = 0;
33 }; 33 };
34 34
35 class CC_EXPORT LayerAnimationController { 35 class CC_EXPORT LayerAnimationController {
36 public: 36 public:
37 static scoped_ptr<LayerAnimationController> create(LayerAnimationControllerC lient*); 37 static scoped_ptr<LayerAnimationController> create(LayerAnimationControllerC lient*);
38 38
39 virtual ~LayerAnimationController(); 39 virtual ~LayerAnimationController();
40 40
41 // These methods are virtual for testing. 41 // These methods are virtual for testing.
42 virtual void addAnimation(scoped_ptr<ActiveAnimation>); 42 virtual void addAnimation(scoped_ptr<ActiveAnimation>);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 LayerAnimationControllerClient* m_client; 103 LayerAnimationControllerClient* m_client;
104 ScopedPtrVector<ActiveAnimation> m_activeAnimations; 104 ScopedPtrVector<ActiveAnimation> m_activeAnimations;
105 105
106 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 106 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
107 }; 107 };
108 108
109 } // namespace cc 109 } // namespace cc
110 110
111 #endif // CC_LAYER_ANIMATION_CONTROLLER_H_ 111 #endif // CC_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698