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

Unified Diff: ui/compositor/compositor.cc

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 | « ui/compositor/compositor.h ('k') | ui/compositor/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 416fcf15012ac1d3aa93d6905b3f10117bc9f20b..19c43ce2af45fabed5f6895b9bc119b89c107236 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -385,6 +385,15 @@ bool Compositor::IsVisible() {
return host_->visible();
}
+bool Compositor::ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) {
+ return host_->GetInputHandler()->ScrollLayerTo(layer_id, offset);
+}
+
+bool Compositor::GetScrollOffsetForLayer(int layer_id,
+ gfx::ScrollOffset* offset) const {
+ return host_->GetInputHandler()->GetScrollOffsetForLayer(layer_id, offset);
+}
+
void Compositor::SetAuthoritativeVSyncInterval(
const base::TimeDelta& interval) {
context_factory_->SetAuthoritativeVSyncInterval(this, interval);
« no previous file with comments | « ui/compositor/compositor.h ('k') | ui/compositor/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698