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

Unified Diff: ui/compositor/compositor.h

Issue 1680613002: Adding momentum/overscroll to views:: ScrollViews Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Tableview layout. aaaand I think we are done 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
« no previous file with comments | « ui/compositor/BUILD.gn ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 05c3bcc93eca5df31894d4ea2df99eb154cc043a..cb5a740a72dd91604e92ba9d258f1afd940ff8a6 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -51,6 +51,7 @@ class TaskGraphRunner;
namespace gfx {
class Rect;
+class ScrollOffset;
class Size;
}
@@ -66,6 +67,7 @@ class CompositorVSyncManager;
class LatencyInfo;
class Layer;
class Reflector;
+class UIScrollInputManager;
class Texture;
const int kCompositorLockTimeoutMs = 67;
@@ -353,6 +355,12 @@ class COMPOSITOR_EXPORT Compositor
return surface_id_allocator_.get();
}
+ UIScrollInputManager* scroll_input_manager() {
+ return scroll_input_manager_.get();
+ }
+
+ bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset);
+
private:
friend class base::RefCounted<Compositor>;
friend class CompositorLock;
@@ -394,6 +402,8 @@ class COMPOSITOR_EXPORT Compositor
LayerAnimatorCollection layer_animator_collection_;
scoped_refptr<cc::AnimationTimeline> animation_timeline_;
+ std::unique_ptr<UIScrollInputManager> scroll_input_manager_;
+
base::WeakPtrFactory<Compositor> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(Compositor);
« no previous file with comments | « ui/compositor/BUILD.gn ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698