From f657d5140d661aca265c0350772d9fa78a0c8316 Mon Sep 17 00:00:00 2001 From: "skyostil@chromium.org" Date: Mon, 17 Sep 2012 11:43:05 +0000 Subject: Add scrolling related getters to WebLayerImpl This patch adds a number of scrolling related getters to WebLayerImpl and LayerChromium for testing purposes. They will be used by the ScrollingCoordinatorChromium test (http://webkit.org/b/96657). Note that the WebLayerImpl getters aren't marked with OVERRIDE because the corresponding changes to WebLayer aren't in place yet. This will be corrected later. BUG=none Review URL: https://chromiumcodereview.appspot.com/10909233 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157101 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/LayerChromium.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cc') diff --git a/cc/LayerChromium.h b/cc/LayerChromium.h index fed90bf..40c6da3 100644 --- a/cc/LayerChromium.h +++ b/cc/LayerChromium.h @@ -134,11 +134,17 @@ public: void setScrollable(bool); bool scrollable() const { return m_scrollable; } + void setShouldScrollOnMainThread(bool); + bool shouldScrollOnMainThread() const { return m_shouldScrollOnMainThread; } + void setHaveWheelEventHandlers(bool); - const Region& nonFastScrollableRegion() { return m_nonFastScrollableRegion; } + bool haveWheelEventHandlers() const { return m_haveWheelEventHandlers; } + void setNonFastScrollableRegion(const Region&); void setNonFastScrollableRegionChanged() { m_nonFastScrollableRegionChanged = true; } + const Region& nonFastScrollableRegion() const { return m_nonFastScrollableRegion; } + void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) { m_layerScrollClient = layerScrollClient; } void setDrawCheckerboardForMissingTiles(bool); -- cgit v1.1