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

Unified Diff: cc/layers/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 | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index d4d3ae9dd34f563b5a41215a12b147464f9923ff..0016527f3f4906bfda7a9927580d17870eb3b918 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;
}
@@ -614,7 +615,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;
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698