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/compositor_bindings/web_layer_impl.h" | 5 #include "webkit/compositor_bindings/web_layer_impl.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "cc/animation.h" | 8 #include "cc/animation.h" |
9 #include "cc/layer.h" | 9 #include "cc/layer.h" |
10 #include "cc/region.h" | 10 #include "cc/region.h" |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 } | 317 } |
318 | 318 |
319 void WebLayerImpl::setFixedToContainerLayer(bool enable) { | 319 void WebLayerImpl::setFixedToContainerLayer(bool enable) { |
320 layer_->setFixedToContainerLayer(enable); | 320 layer_->setFixedToContainerLayer(enable); |
321 } | 321 } |
322 | 322 |
323 bool WebLayerImpl::fixedToContainerLayer() const { | 323 bool WebLayerImpl::fixedToContainerLayer() const { |
324 return layer_->fixedToContainerLayer(); | 324 return layer_->fixedToContainerLayer(); |
325 } | 325 } |
326 | 326 |
| 327 void WebLayerImpl::setFixedToRightEdge(bool enable) { |
| 328 layer_->setFixedToRightEdge(enable); |
| 329 } |
| 330 |
| 331 bool WebLayerImpl::fixedToRightEdge() const { |
| 332 return layer_->fixedToRightEdge(); |
| 333 } |
| 334 |
| 335 void WebLayerImpl::setFixedToBottomEdge(bool enable) { |
| 336 layer_->setFixedToBottomEdge(enable); |
| 337 } |
| 338 |
| 339 bool WebLayerImpl::fixedToBottomEdge() const { |
| 340 return layer_->fixedToBottomEdge(); |
| 341 } |
| 342 |
327 void WebLayerImpl::setScrollClient(WebLayerScrollClient* scroll_client) { | 343 void WebLayerImpl::setScrollClient(WebLayerScrollClient* scroll_client) { |
328 layer_->setLayerScrollClient(scroll_client); | 344 layer_->setLayerScrollClient(scroll_client); |
329 } | 345 } |
330 | 346 |
331 Layer* WebLayerImpl::layer() const { return layer_.get(); } | 347 Layer* WebLayerImpl::layer() const { return layer_.get(); } |
332 | 348 |
333 } // namespace WebKit | 349 } // namespace WebKit |
OLD | NEW |