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

Unified Diff: cc/layers/layer.cc

Issue 18139004: cc: Create a LayerScrollClient interface and an adapter class in compositor_bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 270d2cb19971b177b6477bdc496cae9560227eb9..45f2ec49a46099a3c5894c184f857d2ede3a1ff2 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -13,11 +13,11 @@
#include "cc/animation/animation_events.h"
#include "cc/animation/layer_animation_controller.h"
#include "cc/layers/layer_impl.h"
+#include "cc/layers/layer_scroll_client.h"
#include "cc/output/copy_output_request.h"
#include "cc/output/copy_output_result.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_impl.h"
-#include "third_party/WebKit/public/platform/WebLayerScrollClient.h"
#include "third_party/skia/include/core/SkImageFilter.h"
#include "ui/gfx/rect_conversions.h"
@@ -527,7 +527,7 @@ void Layer::SetScrollOffsetFromImplSide(gfx::Vector2d scroll_offset) {
return;
scroll_offset_ = scroll_offset;
if (layer_scroll_client_)
- layer_scroll_client_->didScroll();
+ layer_scroll_client_->DidScroll();
// Note: didScroll() could potentially change the layer structure.
// "this" may have been destroyed during the process.
}

Powered by Google App Engine
This is Rietveld 408576698