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

Unified Diff: ui/compositor/layer.h

Issue 2189583004: [not for review - epic CL] Adding Elastic+Momentum+Layered scrolling to views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combined rebase Created 4 years, 5 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/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index c19e8eab056130dc0e79971abfe0e6b979465510..c1f4fae7e54afcb31da82e32764e3f8302352062 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -387,6 +387,12 @@ class COMPOSITOR_EXPORT Layer
return damaged_region_;
}
+ gfx::ScrollOffset CurrentScrollOffset() const;
+ void SetScrollOffset(const gfx::ScrollOffset& offset);
+ void SetScrollable(Layer* parent_clip_layer,
+ bool can_overscroll,
+ const base::Closure& on_scroll);
+
private:
friend class LayerOwner;

Powered by Google App Engine
This is Rietveld 408576698