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

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: Add a test for the transform goop 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
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 846bab0d17c68c871055b30d3ff19bffd2fdae1c..5ad002b17b59a0c51d8f1307206a9658e5f5f620 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);

Powered by Google App Engine
This is Rietveld 408576698