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

Unified Diff: cc/trees/layer_tree_host.h

Issue 1646603004: Move scroll event handlers from layer to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_cc_listeners
Patch Set: Rebase against scroll blocks on Created 4 years, 11 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/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index db7247a7415a1d724ef4543272d276ff4f5f5f4e..7ccb9f2ac3980c33d452ed7e045cc1803c296dec 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -207,6 +207,11 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
void RegisterSelection(const LayerSelection& selection);
+ bool have_scroll_event_handlers() const {
+ return have_scroll_event_handlers_;
+ }
+ void SetHaveScrollEventHandlers(bool have_event_handlers);
+
bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; }
void SetHaveWheelEventHandlers(bool have_event_handlers);
@@ -506,6 +511,7 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
SkColor background_color_;
bool has_transparent_background_;
+ bool have_scroll_event_handlers_;
bool have_wheel_event_handlers_;
scoped_ptr<AnimationRegistrar> animation_registrar_;

Powered by Google App Engine
This is Rietveld 408576698