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

Unified Diff: cc/layer_impl.h

Issue 11975007: Implement one-page-at-a-time mousewheel scrolling in the impl thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « cc/layer.cc ('k') | cc/layer_impl.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_impl.h
diff --git a/cc/layer_impl.h b/cc/layer_impl.h
index af96077efee758b206c681157fd5d67896e014b6..91de493b459b78fca9af573ef2d4245485810fd5 100644
--- a/cc/layer_impl.h
+++ b/cc/layer_impl.h
@@ -209,9 +209,12 @@ public:
gfx::Vector2d scrollOffset() const { return m_scrollOffset; }
void setScrollOffset(gfx::Vector2d);
- gfx::Vector2d maxScrollOffset() const {return m_maxScrollOffset; }
+ gfx::Vector2d maxScrollOffset() const { return m_maxScrollOffset; }
void setMaxScrollOffset(gfx::Vector2d);
+ gfx::Size visibleScrollArea() const { return m_visibleScrollArea; }
+ void setVisibleScrollArea(gfx::Size);
+
const gfx::Vector2dF& scrollDelta() const { return m_scrollDelta; }
void setScrollDelta(const gfx::Vector2dF&);
@@ -382,6 +385,7 @@ private:
gfx::Vector2dF m_scrollDelta;
gfx::Vector2d m_sentScrollDelta;
gfx::Vector2d m_maxScrollOffset;
+ gfx::Size m_visibleScrollArea;
gfx::Transform m_implTransform;
// The global depth value of the center of the layer. This value is used
« no previous file with comments | « cc/layer.cc ('k') | cc/layer_impl.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698