OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BLINK_WEB_LAYER_IMPL_H_ | 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_ |
6 #define CC_BLINK_WEB_LAYER_IMPL_H_ | 6 #define CC_BLINK_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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 virtual void setIsContainerForFixedPositionLayers(bool is_container); | 125 virtual void setIsContainerForFixedPositionLayers(bool is_container); |
126 virtual bool isContainerForFixedPositionLayers() const; | 126 virtual bool isContainerForFixedPositionLayers() const; |
127 virtual void setPositionConstraint( | 127 virtual void setPositionConstraint( |
128 const blink::WebLayerPositionConstraint& constraint); | 128 const blink::WebLayerPositionConstraint& constraint); |
129 virtual blink::WebLayerPositionConstraint positionConstraint() const; | 129 virtual blink::WebLayerPositionConstraint positionConstraint() const; |
130 virtual void setScrollClient(blink::WebLayerScrollClient* client); | 130 virtual void setScrollClient(blink::WebLayerScrollClient* client); |
131 virtual bool isOrphan() const; | 131 virtual bool isOrphan() const; |
132 virtual void setWebLayerClient(blink::WebLayerClient* client); | 132 virtual void setWebLayerClient(blink::WebLayerClient* client); |
133 | 133 |
134 // LayerClient implementation. | 134 // LayerClient implementation. |
135 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo() | 135 scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo() override; |
136 override; | |
137 | 136 |
138 virtual void setScrollParent(blink::WebLayer* parent); | 137 virtual void setScrollParent(blink::WebLayer* parent); |
139 virtual void setClipParent(blink::WebLayer* parent); | 138 virtual void setClipParent(blink::WebLayer* parent); |
140 | 139 |
141 protected: | 140 protected: |
142 scoped_refptr<cc::Layer> layer_; | 141 scoped_refptr<cc::Layer> layer_; |
143 blink::WebLayerClient* web_layer_client_; | 142 blink::WebLayerClient* web_layer_client_; |
144 | 143 |
145 private: | 144 private: |
146 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; | 145 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; |
147 | 146 |
148 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); | 147 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); |
149 }; | 148 }; |
150 | 149 |
151 } // namespace cc_blink | 150 } // namespace cc_blink |
152 | 151 |
153 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ | 152 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ |
OLD | NEW |