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

Side by Side Diff: third_party/WebKit/public/platform/WebLayer.h

Issue 1637083004: CC Animation: Remove meaningless method from WebLayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebLayer_h 26 #ifndef WebLayer_h
27 #define WebLayer_h 27 #define WebLayer_h
28 28
29 #include "WebBlendMode.h" 29 #include "WebBlendMode.h"
30 #include "WebColor.h" 30 #include "WebColor.h"
31 #include "WebCommon.h" 31 #include "WebCommon.h"
32 #include "WebCompositorAnimation.h"
33 #include "WebDoublePoint.h" 32 #include "WebDoublePoint.h"
34 #include "WebFloatPoint3D.h" 33 #include "WebFloatPoint3D.h"
35 #include "WebPoint.h" 34 #include "WebPoint.h"
36 #include "WebRect.h" 35 #include "WebRect.h"
37 #include "WebScrollBlocksOn.h" 36 #include "WebScrollBlocksOn.h"
38 #include "WebSize.h" 37 #include "WebSize.h"
39 #include "WebString.h" 38 #include "WebString.h"
40 #include "WebVector.h" 39 #include "WebVector.h"
41 40
42 class SkMatrix44; 41 class SkMatrix44;
43 class SkImageFilter; 42 class SkImageFilter;
44 43
45 namespace cc { 44 namespace cc {
46 class Layer; 45 class Layer;
47 class LayerClient; 46 class LayerClient;
48 } 47 }
49 48
50 namespace blink { 49 namespace blink {
50 class WebCompositorAnimation;
51 class WebCompositorAnimationDelegate; 51 class WebCompositorAnimationDelegate;
52 class WebFilterOperations; 52 class WebFilterOperations;
53 class WebLayerScrollClient; 53 class WebLayerScrollClient;
54 struct WebFloatPoint; 54 struct WebFloatPoint;
55 struct WebLayerPositionConstraint; 55 struct WebLayerPositionConstraint;
56 56
57 class WebLayer { 57 class WebLayer {
58 public: 58 public:
59 virtual ~WebLayer() { } 59 virtual ~WebLayer() { }
60 60
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 virtual void setAnimationDelegate(WebCompositorAnimationDelegate*) = 0; 147 virtual void setAnimationDelegate(WebCompositorAnimationDelegate*) = 0;
148 148
149 149
150 // Returns false if the animation cannot be added. 150 // Returns false if the animation cannot be added.
151 // Takes ownership of the WebCompositorAnimation object. 151 // Takes ownership of the WebCompositorAnimation object.
152 virtual bool addAnimation(WebCompositorAnimation*) = 0; 152 virtual bool addAnimation(WebCompositorAnimation*) = 0;
153 153
154 // Removes all animations with the given id. 154 // Removes all animations with the given id.
155 virtual void removeAnimation(int animationId) = 0; 155 virtual void removeAnimation(int animationId) = 0;
156 156
157 // Removes all animations with the given id targeting the given property.
158 virtual void removeAnimation(int animationId, WebCompositorAnimation::Target Property) = 0;
159
160 // Pauses all animations with the given id. 157 // Pauses all animations with the given id.
161 virtual void pauseAnimation(int animationId, double timeOffset) = 0; 158 virtual void pauseAnimation(int animationId, double timeOffset) = 0;
162 159
163 // Aborts all animations with the given id. Different from removeAnimation 160 // Aborts all animations with the given id. Different from removeAnimation
164 // in that aborting an animation stops it from affecting both the pending 161 // in that aborting an animation stops it from affecting both the pending
165 // and active tree. 162 // and active tree.
166 virtual void abortAnimation(int animationId) = 0; 163 virtual void abortAnimation(int animationId) = 0;
167 164
168 // Returns true if this layer has any active animations - useful for tests. 165 // Returns true if this layer has any active animations - useful for tests.
169 virtual bool hasActiveAnimation() = 0; 166 virtual bool hasActiveAnimation() = 0;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 virtual void setElementId(uint64_t) = 0; 256 virtual void setElementId(uint64_t) = 0;
260 virtual uint64_t elementId() const = 0; 257 virtual uint64_t elementId() const = 0;
261 258
262 virtual void setCompositorMutableProperties(uint32_t) = 0; 259 virtual void setCompositorMutableProperties(uint32_t) = 0;
263 virtual uint32_t compositorMutableProperties() const = 0; 260 virtual uint32_t compositorMutableProperties() const = 0;
264 }; 261 };
265 262
266 } // namespace blink 263 } // namespace blink
267 264
268 #endif // WebLayer_h 265 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698