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

Unified Diff: ui/compositor/layer.cc

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 | « ui/compositor/layer.h ('k') | ui/views/controls/scroll_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 378a09e96e174d467aaee52c21e8752cdf1963f1..9170fa2d375577aeb0e5c4364b407ace02b8d939 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -820,8 +820,9 @@ void Layer::OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) {
delegate_->OnDelegatedFrameDamage(damage_rect_in_dip);
}
-void Layer::SetScrollable(Layer* parent_clip_layer,
- const base::Closure& on_scroll) {
+void Layer::SetScrollable(
+ Layer* parent_clip_layer,
+ const base::Callback<void(const gfx::ScrollOffset&)>& on_scroll) {
cc_layer_->SetScrollClipLayerId(parent_clip_layer->cc_layer_->id());
cc_layer_->set_did_scroll_callback(on_scroll);
cc_layer_->SetUserScrollable(true, true);
« no previous file with comments | « ui/compositor/layer.h ('k') | ui/views/controls/scroll_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698