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

Side by Side Diff: cc/layer.h

Issue 12453010: Allow impl-only animations, and return opacity values via AnimationEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed nits, patch for submission. Created 7 years, 9 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
« no previous file with comments | « cc/animation_events.h ('k') | cc/layer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_H_ 5 #ifndef CC_LAYER_H_
6 #define CC_LAYER_H_ 6 #define CC_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 LayerAnimationController* layerAnimationController() { return m_layerAnimati onController.get(); } 264 LayerAnimationController* layerAnimationController() { return m_layerAnimati onController.get(); }
265 void setLayerAnimationController(scoped_refptr<LayerAnimationController>); 265 void setLayerAnimationController(scoped_refptr<LayerAnimationController>);
266 scoped_refptr<LayerAnimationController> releaseLayerAnimationController(); 266 scoped_refptr<LayerAnimationController> releaseLayerAnimationController();
267 267
268 void setLayerAnimationDelegate(WebKit::WebAnimationDelegate* layerAnimationD elegate) { m_layerAnimationDelegate = layerAnimationDelegate; } 268 void setLayerAnimationDelegate(WebKit::WebAnimationDelegate* layerAnimationD elegate) { m_layerAnimationDelegate = layerAnimationDelegate; }
269 269
270 bool hasActiveAnimation() const; 270 bool hasActiveAnimation() const;
271 271
272 virtual void notifyAnimationStarted(const AnimationEvent&, double wallClockT ime); 272 virtual void notifyAnimationStarted(const AnimationEvent&, double wallClockT ime);
273 virtual void notifyAnimationFinished(double wallClockTime); 273 virtual void notifyAnimationFinished(double wallClockTime);
274 virtual void notifyAnimationPropertyUpdate(const AnimationEvent& event);
274 275
275 void addLayerAnimationEventObserver(LayerAnimationEventObserver* animationOb server); 276 void addLayerAnimationEventObserver(LayerAnimationEventObserver* animationOb server);
276 void removeLayerAnimationEventObserver(LayerAnimationEventObserver* animatio nObserver); 277 void removeLayerAnimationEventObserver(LayerAnimationEventObserver* animatio nObserver);
277 278
278 virtual Region visibleContentOpaqueRegion() const; 279 virtual Region visibleContentOpaqueRegion() const;
279 280
280 virtual ScrollbarLayer* toScrollbarLayer(); 281 virtual ScrollbarLayer* toScrollbarLayer();
281 282
282 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; 283 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const;
283 284
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 WebKit::WebLayerScrollClient* m_layerScrollClient; 404 WebKit::WebLayerScrollClient* m_layerScrollClient;
404 405
405 DrawProperties<Layer, RenderSurface> m_drawProperties; 406 DrawProperties<Layer, RenderSurface> m_drawProperties;
406 }; 407 };
407 408
408 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*); 409 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped _refptr<Layer> >::iterator, void*);
409 410
410 } // namespace cc 411 } // namespace cc
411 412
412 #endif // CC_LAYER_H_ 413 #endif // CC_LAYER_H_
OLDNEW
« no previous file with comments | « cc/animation_events.h ('k') | cc/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698