| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
| 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // TODO(senorblanco): Remove this once WebKit changes have landed. | 29 // TODO(senorblanco): Remove this once WebKit changes have landed. |
| 30 class SkImageFilter; | 30 class SkImageFilter; |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 class WebFilterOperations; | 33 class WebFilterOperations; |
| 34 class WebLayerClient; | 34 class WebLayerClient; |
| 35 struct WebFloatRect; | 35 struct WebFloatRect; |
| 36 } | 36 } |
| 37 | 37 |
| 38 namespace base { |
| 39 namespace debug { |
| 40 class ConvertableToTraceFormat; |
| 41 } |
| 42 } |
| 43 |
| 38 namespace webkit { | 44 namespace webkit { |
| 39 | 45 |
| 40 class WebToCCAnimationDelegateAdapter; | 46 class WebToCCAnimationDelegateAdapter; |
| 41 | 47 |
| 42 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient { | 48 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient { |
| 43 public: | 49 public: |
| 44 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl(); | 50 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl(); |
| 45 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl( | 51 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl( |
| 46 scoped_refptr<cc::Layer>); | 52 scoped_refptr<cc::Layer>); |
| 47 virtual ~WebLayerImpl(); | 53 virtual ~WebLayerImpl(); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual bool isContainerForFixedPositionLayers() const; | 124 virtual bool isContainerForFixedPositionLayers() const; |
| 119 virtual void setPositionConstraint( | 125 virtual void setPositionConstraint( |
| 120 const blink::WebLayerPositionConstraint& constraint); | 126 const blink::WebLayerPositionConstraint& constraint); |
| 121 virtual blink::WebLayerPositionConstraint positionConstraint() const; | 127 virtual blink::WebLayerPositionConstraint positionConstraint() const; |
| 122 virtual void setScrollClient(blink::WebLayerScrollClient* client); | 128 virtual void setScrollClient(blink::WebLayerScrollClient* client); |
| 123 virtual bool isOrphan() const; | 129 virtual bool isOrphan() const; |
| 124 virtual void setWebLayerClient(blink::WebLayerClient* client); | 130 virtual void setWebLayerClient(blink::WebLayerClient* client); |
| 125 | 131 |
| 126 // LayerClient implementation. | 132 // LayerClient implementation. |
| 127 virtual std::string DebugName() OVERRIDE; | 133 virtual std::string DebugName() OVERRIDE; |
| 134 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> |
| 135 TakeDebugInfo() OVERRIDE; |
| 128 | 136 |
| 129 virtual void setScrollParent(blink::WebLayer* parent); | 137 virtual void setScrollParent(blink::WebLayer* parent); |
| 130 virtual void setClipParent(blink::WebLayer* parent); | 138 virtual void setClipParent(blink::WebLayer* parent); |
| 131 | 139 |
| 132 protected: | 140 protected: |
| 133 scoped_refptr<cc::Layer> layer_; | 141 scoped_refptr<cc::Layer> layer_; |
| 134 blink::WebLayerClient* web_layer_client_; | 142 blink::WebLayerClient* web_layer_client_; |
| 135 | 143 |
| 136 private: | 144 private: |
| 137 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 145 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
| 138 | 146 |
| 139 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 147 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
| 140 }; | 148 }; |
| 141 | 149 |
| 142 } // namespace webkit | 150 } // namespace webkit |
| 143 | 151 |
| 144 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 152 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
| OLD | NEW |