| 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 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" | 5 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event_impl.h" | 8 #include "base/debug/trace_event_impl.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } | 93 } |
| 94 | 94 |
| 95 void WebLayerImpl::removeFromParent() { layer_->RemoveFromParent(); } | 95 void WebLayerImpl::removeFromParent() { layer_->RemoveFromParent(); } |
| 96 | 96 |
| 97 void WebLayerImpl::removeAllChildren() { layer_->RemoveAllChildren(); } | 97 void WebLayerImpl::removeAllChildren() { layer_->RemoveAllChildren(); } |
| 98 | 98 |
| 99 void WebLayerImpl::setAnchorPoint(const WebFloatPoint& anchor_point) { | 99 void WebLayerImpl::setAnchorPoint(const WebFloatPoint& anchor_point) { |
| 100 layer_->SetAnchorPoint(anchor_point); | 100 layer_->SetAnchorPoint(anchor_point); |
| 101 } | 101 } |
| 102 | 102 |
| 103 bool WebLayerImpl::hasScrollChildren() { |
| 104 return layer_->has_scroll_children(); |
| 105 } |
| 106 |
| 103 WebFloatPoint WebLayerImpl::anchorPoint() const { | 107 WebFloatPoint WebLayerImpl::anchorPoint() const { |
| 104 return layer_->anchor_point(); | 108 return layer_->anchor_point(); |
| 105 } | 109 } |
| 106 | 110 |
| 107 void WebLayerImpl::setAnchorPointZ(float anchor_point_z) { | 111 void WebLayerImpl::setAnchorPointZ(float anchor_point_z) { |
| 108 layer_->SetAnchorPointZ(anchor_point_z); | 112 layer_->SetAnchorPointZ(anchor_point_z); |
| 109 } | 113 } |
| 110 | 114 |
| 111 float WebLayerImpl::anchorPointZ() const { return layer_->anchor_point_z(); } | 115 float WebLayerImpl::anchorPointZ() const { return layer_->anchor_point_z(); } |
| 112 | 116 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 void WebLayerImpl::setClipParent(blink::WebLayer* parent) { | 446 void WebLayerImpl::setClipParent(blink::WebLayer* parent) { |
| 443 cc::Layer* clip_parent = NULL; | 447 cc::Layer* clip_parent = NULL; |
| 444 if (parent) | 448 if (parent) |
| 445 clip_parent = static_cast<WebLayerImpl*>(parent)->layer(); | 449 clip_parent = static_cast<WebLayerImpl*>(parent)->layer(); |
| 446 layer_->SetClipParent(clip_parent); | 450 layer_->SetClipParent(clip_parent); |
| 447 } | 451 } |
| 448 | 452 |
| 449 Layer* WebLayerImpl::layer() const { return layer_.get(); } | 453 Layer* WebLayerImpl::layer() const { return layer_.get(); } |
| 450 | 454 |
| 451 } // namespace webkit | 455 } // namespace webkit |
| OLD | NEW |