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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 virtual void setIsContainerForFixedPositionLayers(bool is_container); | 127 virtual void setIsContainerForFixedPositionLayers(bool is_container); |
128 virtual bool isContainerForFixedPositionLayers() const; | 128 virtual bool isContainerForFixedPositionLayers() const; |
129 virtual void setPositionConstraint( | 129 virtual void setPositionConstraint( |
130 const blink::WebLayerPositionConstraint& constraint); | 130 const blink::WebLayerPositionConstraint& constraint); |
131 virtual blink::WebLayerPositionConstraint positionConstraint() const; | 131 virtual blink::WebLayerPositionConstraint positionConstraint() const; |
132 virtual void setScrollClient(blink::WebLayerScrollClient* client); | 132 virtual void setScrollClient(blink::WebLayerScrollClient* client); |
133 virtual bool isOrphan() const; | 133 virtual bool isOrphan() const; |
134 virtual void setWebLayerClient(blink::WebLayerClient* client); | 134 virtual void setWebLayerClient(blink::WebLayerClient* client); |
135 | 135 |
136 // LayerClient implementation. | 136 // LayerClient implementation. |
137 virtual std::string DebugName() OVERRIDE; | |
138 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> | 137 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> |
139 TakeDebugInfo() OVERRIDE; | 138 TakeDebugInfo() OVERRIDE; |
140 | 139 |
141 virtual void setScrollParent(blink::WebLayer* parent); | 140 virtual void setScrollParent(blink::WebLayer* parent); |
142 virtual void setClipParent(blink::WebLayer* parent); | 141 virtual void setClipParent(blink::WebLayer* parent); |
143 | 142 |
144 protected: | 143 protected: |
145 scoped_refptr<cc::Layer> layer_; | 144 scoped_refptr<cc::Layer> layer_; |
146 blink::WebLayerClient* web_layer_client_; | 145 blink::WebLayerClient* web_layer_client_; |
147 | 146 |
148 private: | 147 private: |
149 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 148 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
150 | 149 |
151 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 150 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
152 }; | 151 }; |
153 | 152 |
154 } // namespace webkit | 153 } // namespace webkit |
155 | 154 |
156 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ | 155 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ |
OLD | NEW |