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

Unified Diff: ui/compositor/layer.h

Issue 2680953002: Remove GraphicsLayer::didScroll and directly call ScrollableArea::didScroll (Closed)
Patch Set: Incorporate reviewer comments: more tests, less bad tests Created 3 years, 10 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 | « third_party/WebKit/public/platform/WebLayerScrollClient.h ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index e1525b572869886b14383621bd6a97b99c4c2434..76451c0a8300f4e3dfbaa84c164dd159696ffb69 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -349,7 +349,9 @@ class COMPOSITOR_EXPORT Layer
// Makes this Layer scrollable, clipping to |parent_clip_layer|. |on_scroll|
// is invoked when scrolling performed by the cc::InputHandler is committed.
- void SetScrollable(Layer* parent_clip_layer, const base::Closure& on_scroll);
+ void SetScrollable(
+ Layer* parent_clip_layer,
+ const base::Callback<void(const gfx::ScrollOffset&)>& on_scroll);
// Gets and sets the current scroll offset of the layer.
gfx::ScrollOffset CurrentScrollOffset() const;
« no previous file with comments | « third_party/WebKit/public/platform/WebLayerScrollClient.h ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698