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 "config.h" | 5 #include "config.h" |
6 #include "WebLayerImpl.h" | 6 #include "WebLayerImpl.h" |
7 | 7 |
8 #include "CCActiveAnimation.h" | 8 #include "CCActiveAnimation.h" |
9 #include "LayerChromium.h" | 9 #include "LayerChromium.h" |
10 #include "SkMatrix44.h" | 10 #include "SkMatrix44.h" |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 void WebLayerImpl::setForceRenderSurface(bool forceRenderSurface) | 327 void WebLayerImpl::setForceRenderSurface(bool forceRenderSurface) |
328 { | 328 { |
329 m_layer->setForceRenderSurface(forceRenderSurface); | 329 m_layer->setForceRenderSurface(forceRenderSurface); |
330 } | 330 } |
331 | 331 |
332 void WebLayerImpl::setScrollPosition(WebPoint position) | 332 void WebLayerImpl::setScrollPosition(WebPoint position) |
333 { | 333 { |
334 m_layer->setScrollPosition(position); | 334 m_layer->setScrollPosition(position); |
335 } | 335 } |
336 | 336 |
| 337 WebPoint WebLayerImpl::scrollPosition() const |
| 338 { |
| 339 return m_layer->scrollPosition(); |
| 340 } |
| 341 |
| 342 void WebLayerImpl::setMaxScrollPosition(WebSize maxScrollPosition) |
| 343 { |
| 344 m_layer->setMaxScrollPosition(maxScrollPosition); |
| 345 } |
| 346 |
337 void WebLayerImpl::setScrollable(bool scrollable) | 347 void WebLayerImpl::setScrollable(bool scrollable) |
338 { | 348 { |
339 m_layer->setScrollable(scrollable); | 349 m_layer->setScrollable(scrollable); |
340 } | 350 } |
341 | 351 |
342 void WebLayerImpl::setHaveWheelEventHandlers(bool haveWheelEventHandlers) | 352 void WebLayerImpl::setHaveWheelEventHandlers(bool haveWheelEventHandlers) |
343 { | 353 { |
344 m_layer->setHaveWheelEventHandlers(haveWheelEventHandlers); | 354 m_layer->setHaveWheelEventHandlers(haveWheelEventHandlers); |
345 } | 355 } |
346 | 356 |
(...skipping 16 matching lines...) Expand all Loading... |
363 void WebLayerImpl::setIsContainerForFixedPositionLayers(bool enable) | 373 void WebLayerImpl::setIsContainerForFixedPositionLayers(bool enable) |
364 { | 374 { |
365 m_layer->setIsContainerForFixedPositionLayers(enable); | 375 m_layer->setIsContainerForFixedPositionLayers(enable); |
366 } | 376 } |
367 | 377 |
368 void WebLayerImpl::setFixedToContainerLayer(bool enable) | 378 void WebLayerImpl::setFixedToContainerLayer(bool enable) |
369 { | 379 { |
370 m_layer->setFixedToContainerLayer(enable); | 380 m_layer->setFixedToContainerLayer(enable); |
371 } | 381 } |
372 | 382 |
| 383 void WebLayerImpl::setScrollClient(WebLayerScrollClient* scrollClient) |
| 384 { |
| 385 m_layer->setLayerScrollClient(scrollClient); |
| 386 } |
| 387 |
373 LayerChromium* WebLayerImpl::layer() const | 388 LayerChromium* WebLayerImpl::layer() const |
374 { | 389 { |
375 return m_layer.get(); | 390 return m_layer.get(); |
376 } | 391 } |
377 | 392 |
378 } // namespace WebKit | 393 } // namespace WebKit |
OLD | NEW |