Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: webkit/compositor_bindings/WebLayerImpl.cpp

Issue 10909233: Add scrolling related getters to WebLayerImpl (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/compositor_bindings/WebLayerImpl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/WebLayerImpl.cpp
diff --git a/webkit/compositor_bindings/WebLayerImpl.cpp b/webkit/compositor_bindings/WebLayerImpl.cpp
index df3f430c49b8290eeb54907744fb2f1a9290083b..e3bda86606e4124f4ce293170704f2db18d0f51f 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);
« no previous file with comments | « webkit/compositor_bindings/WebLayerImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698