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

Unified Diff: cc/layer.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/input_handler.h ('k') | cc/layer.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.h
diff --git a/cc/layer.h b/cc/layer.h
index 5f61d1428847ee1ce5966b0d8a42a6d71f12d9b2..f1aca620f06151d7e7c4df6ccd8a9523d57a85a1 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -155,6 +155,9 @@ public:
void setMaxScrollOffset(gfx::Vector2d);
gfx::Vector2d maxScrollOffset() const { return m_maxScrollOffset; }
+ void setVisibleScrollArea(gfx::Size);
+ gfx::Size visibleScrollArea() const { return m_visibleScrollArea; }
+
void setScrollable(bool);
bool scrollable() const { return m_scrollable; }
@@ -358,6 +361,7 @@ private:
gfx::Vector2d m_scrollOffset;
gfx::Vector2d m_maxScrollOffset;
+ gfx::Size m_visibleScrollArea;
bool m_scrollable;
bool m_shouldScrollOnMainThread;
bool m_haveWheelEventHandlers;
« no previous file with comments | « cc/input_handler.h ('k') | cc/layer.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698