diff options
author | skyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-17 11:43:05 +0000 |
---|---|---|
committer | skyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-17 11:43:05 +0000 |
commit | f657d5140d661aca265c0350772d9fa78a0c8316 (patch) | |
tree | 5496bfe25afabfc267dab4ef812e3df2ad7678a0 /cc | |
parent | c7f4d795a59d8ae355e926324fda81d918736ace (diff) | |
download | chromium_src-f657d5140d661aca265c0350772d9fa78a0c8316.zip chromium_src-f657d5140d661aca265c0350772d9fa78a0c8316.tar.gz chromium_src-f657d5140d661aca265c0350772d9fa78a0c8316.tar.bz2 |
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
Diffstat (limited to 'cc')
-rw-r--r-- | cc/LayerChromium.h | 8 |
1 files changed, 7 insertions, 1 deletions
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); |