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

Unified Diff: cc/debug/debug_rect_history.cc

Issue 1577263004: Communicate whether passive event listeners exist to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners
Patch Set: Rebase 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/debug/debug_rect_history.cc
diff --git a/cc/debug/debug_rect_history.cc b/cc/debug/debug_rect_history.cc
index 59ca9de9ce63eb1bc0bebce7560fab495ffbb1d9..bd4b9b3bc338f897821e14d5bdd08afb4b37558e 100644
--- a/cc/debug/debug_rect_history.cc
+++ b/cc/debug/debug_rect_history.cc
@@ -181,7 +181,13 @@ void DebugRectHistory::SaveWheelEventHandlerRects(LayerImpl* layer) {
}
void DebugRectHistory::SaveWheelEventHandlerRectsCallback(LayerImpl* layer) {
- if (!layer->layer_tree_impl()->have_wheel_event_handlers())
+ uint32_t event_mask = EventListenerProperties::kBlocking;
+ if (!layer->layer_tree_impl()->settings().use_mouse_wheel_gestures)
+ event_mask |= EventListenerProperties::kPassive;
+
+ if ((layer->layer_tree_impl()->event_listener_properties(
+ EventListenerClass::kMouseWheel) &
+ event_mask) == EventListenerProperties::kNone)
return;
debug_rects_.push_back(
« no previous file with comments | « no previous file | cc/input/event_listener_properties.h » ('j') | third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698