OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |