| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 LayerAnimationController* layerAnimationController() { return m_layerAnimati
onController.get(); } | 266 LayerAnimationController* layerAnimationController() { return m_layerAnimati
onController.get(); } |
| 267 void setLayerAnimationController(scoped_refptr<LayerAnimationController>); | 267 void setLayerAnimationController(scoped_refptr<LayerAnimationController>); |
| 268 scoped_refptr<LayerAnimationController> releaseLayerAnimationController(); | 268 scoped_refptr<LayerAnimationController> releaseLayerAnimationController(); |
| 269 | 269 |
| 270 void setLayerAnimationDelegate(WebKit::WebAnimationDelegate* layerAnimationD
elegate) { m_layerAnimationDelegate = layerAnimationDelegate; } | 270 void setLayerAnimationDelegate(WebKit::WebAnimationDelegate* layerAnimationD
elegate) { m_layerAnimationDelegate = layerAnimationDelegate; } |
| 271 | 271 |
| 272 bool hasActiveAnimation() const; | 272 bool hasActiveAnimation() const; |
| 273 | 273 |
| 274 virtual void notifyAnimationStarted(const AnimationEvent&, double wallClockT
ime); | 274 virtual void notifyAnimationStarted(const AnimationEvent&, double wallClockT
ime); |
| 275 virtual void notifyAnimationFinished(double wallClockTime); | 275 virtual void notifyAnimationFinished(double wallClockTime); |
| 276 virtual void notifyAnimationPropertyUpdate(const AnimationEvent& event); |
| 276 | 277 |
| 277 void addLayerAnimationEventObserver(LayerAnimationEventObserver* animationOb
server); | 278 void addLayerAnimationEventObserver(LayerAnimationEventObserver* animationOb
server); |
| 278 void removeLayerAnimationEventObserver(LayerAnimationEventObserver* animatio
nObserver); | 279 void removeLayerAnimationEventObserver(LayerAnimationEventObserver* animatio
nObserver); |
| 279 | 280 |
| 280 virtual Region visibleContentOpaqueRegion() const; | 281 virtual Region visibleContentOpaqueRegion() const; |
| 281 | 282 |
| 282 virtual ScrollbarLayer* toScrollbarLayer(); | 283 virtual ScrollbarLayer* toScrollbarLayer(); |
| 283 | 284 |
| 284 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; | 285 gfx::Rect layerRectToContentRect(const gfx::RectF& layerRect) const; |
| 285 | 286 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 WebKit::WebLayerScrollClient* m_layerScrollClient; | 406 WebKit::WebLayerScrollClient* m_layerScrollClient; |
| 406 | 407 |
| 407 DrawProperties<Layer, RenderSurface> m_drawProperties; | 408 DrawProperties<Layer, RenderSurface> m_drawProperties; |
| 408 }; | 409 }; |
| 409 | 410 |
| 410 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); | 411 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*); |
| 411 | 412 |
| 412 } // namespace cc | 413 } // namespace cc |
| 413 | 414 |
| 414 #endif // CC_LAYER_H_ | 415 #endif // CC_LAYER_H_ |
| OLD | NEW |