summaryrefslogtreecommitdiffstats
path: root/webkit/compositor_bindings
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/compositor_bindings')
-rw-r--r--webkit/compositor_bindings/WebLayerImpl.cpp39
-rw-r--r--webkit/compositor_bindings/WebLayerImpl.h7
2 files changed, 46 insertions, 0 deletions
diff --git a/webkit/compositor_bindings/WebLayerImpl.cpp b/webkit/compositor_bindings/WebLayerImpl.cpp
index 0d86f19..6bd4f21 100644
--- a/webkit/compositor_bindings/WebLayerImpl.cpp
+++ b/webkit/compositor_bindings/WebLayerImpl.cpp
@@ -348,21 +348,41 @@ void WebLayerImpl::setMaxScrollPosition(WebSize maxScrollPosition)
m_layer->setMaxScrollPosition(convert(maxScrollPosition));
}
+WebSize WebLayerImpl::maxScrollPosition() const
+{
+ return convert(m_layer->maxScrollPosition());
+}
+
void WebLayerImpl::setScrollable(bool scrollable)
{
m_layer->setScrollable(scrollable);
}
+bool WebLayerImpl::scrollable() const
+{
+ return m_layer->scrollable();
+}
+
void WebLayerImpl::setHaveWheelEventHandlers(bool haveWheelEventHandlers)
{
m_layer->setHaveWheelEventHandlers(haveWheelEventHandlers);
}
+bool WebLayerImpl::haveWheelEventHandlers() const
+{
+ return m_layer->haveWheelEventHandlers();
+}
+
void WebLayerImpl::setShouldScrollOnMainThread(bool shouldScrollOnMainThread)
{
m_layer->setShouldScrollOnMainThread(shouldScrollOnMainThread);
}
+bool WebLayerImpl::shouldScrollOnMainThread() const
+{
+ return m_layer->shouldScrollOnMainThread();
+}
+
void WebLayerImpl::setNonFastScrollableRegion(const WebVector<WebRect>& rects)
{
WebCore::Region region;
@@ -374,16 +394,35 @@ void WebLayerImpl::setNonFastScrollableRegion(const WebVector<WebRect>& rects)
}
+WebVector<WebRect> WebLayerImpl::nonFastScrollableRegion() const
+{
+ Vector<WebCore::IntRect> regionRects = m_layer->nonFastScrollableRegion().rects();
+ WebVector<WebRect> result(regionRects.size());
+ for (size_t i = 0; i < regionRects.size(); ++i)
+ result[i] = convert(regionRects[i]);
+ return result;
+}
+
void WebLayerImpl::setIsContainerForFixedPositionLayers(bool enable)
{
m_layer->setIsContainerForFixedPositionLayers(enable);
}
+bool WebLayerImpl::isContainerForFixedPositionLayers() const
+{
+ return m_layer->isContainerForFixedPositionLayers();
+}
+
void WebLayerImpl::setFixedToContainerLayer(bool enable)
{
m_layer->setFixedToContainerLayer(enable);
}
+bool WebLayerImpl::fixedToContainerLayer() const
+{
+ return m_layer->fixedToContainerLayer();
+}
+
void WebLayerImpl::setScrollClient(WebLayerScrollClient* scrollClient)
{
m_layer->setLayerScrollClient(scrollClient);
diff --git a/webkit/compositor_bindings/WebLayerImpl.h b/webkit/compositor_bindings/WebLayerImpl.h
index e6bcefe..013d7a9 100644
--- a/webkit/compositor_bindings/WebLayerImpl.h
+++ b/webkit/compositor_bindings/WebLayerImpl.h
@@ -75,12 +75,19 @@ public:
virtual void setScrollPosition(WebPoint) OVERRIDE;
virtual WebPoint scrollPosition() const OVERRIDE;
virtual void setMaxScrollPosition(WebSize) OVERRIDE;
+ virtual WebSize maxScrollPosition() const;
virtual void setScrollable(bool) OVERRIDE;
+ virtual bool scrollable() const;
virtual void setHaveWheelEventHandlers(bool) OVERRIDE;
+ virtual bool haveWheelEventHandlers() const;
virtual void setShouldScrollOnMainThread(bool) OVERRIDE;
+ virtual bool shouldScrollOnMainThread() const;
virtual void setNonFastScrollableRegion(const WebVector<WebRect>&) OVERRIDE;
+ virtual WebVector<WebRect> nonFastScrollableRegion() const;
virtual void setIsContainerForFixedPositionLayers(bool) OVERRIDE;
+ virtual bool isContainerForFixedPositionLayers() const;
virtual void setFixedToContainerLayer(bool) OVERRIDE;
+ virtual bool fixedToContainerLayer() const;
virtual void setScrollClient(WebLayerScrollClient*) OVERRIDE;
cc::LayerChromium* layer() const;