Index: cc/layers/layer.h |
diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
index 99bb550023ab7056e476cf106ea4713b948962b0..6c93379fccaf2009ba170a1eb3619c11a11bc0c6 100644 |
--- a/cc/layers/layer.h |
+++ b/cc/layers/layer.h |
@@ -251,7 +251,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
return inputs_.touch_event_handler_region; |
} |
- void set_did_scroll_callback(const base::Closure& callback) { |
+ void set_did_scroll_callback( |
+ const base::Callback<void(const gfx::ScrollOffset&)>& callback) { |
inputs_.did_scroll_callback = callback; |
} |
@@ -615,7 +616,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> { |
// The following elements can not and are not serialized. |
LayerClient* client; |
- base::Closure did_scroll_callback; |
+ base::Callback<void(const gfx::ScrollOffset&)> did_scroll_callback; |
std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests; |
gfx::Size preferred_raster_bounds; |