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

Unified Diff: cc/input/input_handler.h

Issue 2188133002: Scroll with Layers in views::ScrollView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-ScrollTrack
Patch Set: bugref, scale_delta DCHECK + comment Created 4 years, 4 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 | « no previous file | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/input_handler.h
diff --git a/cc/input/input_handler.h b/cc/input/input_handler.h
index 11a33105b1ef87efc0eaedb2827dffa97b8eb73d..bd11a620bbff2038ab1a8e74a38abf5f56c39eee 100644
--- a/cc/input/input_handler.h
+++ b/cc/input/input_handler.h
@@ -198,6 +198,12 @@ class CC_EXPORT InputHandler {
virtual ScrollElasticityHelper* CreateScrollElasticityHelper() = 0;
+ // Called by the single-threaded UI Compositor to get or set the scroll offset
+ // on the impl side. Retruns false if |layer_id| isn't in the active tree.
+ virtual bool GetScrollOffsetForLayer(int layer_id,
+ gfx::ScrollOffset* offset) = 0;
+ virtual bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) = 0;
+
protected:
InputHandler() {}
virtual ~InputHandler() {}
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698