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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 1631963002: Plumb firing passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners_2a
Patch Set: Set dependency correctly 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_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 4784ce7a1b69deef102ef9025518d504814668be..6ba16d937abce7563ac4ffb25cc655e5b7c645c1 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -1745,29 +1745,6 @@ static bool LayerHasTouchEventHandlersAt(const gfx::PointF& screen_space_point,
return true;
}
-struct FindWheelEventLayerFunctor {
- bool operator()(LayerImpl* layer) const {
- return layer->wheel_event_properties() != EventListenerProperties::kNone;
- }
-};
-
-LayerImpl* LayerTreeImpl::FindLayerWithWheelHandlerThatIsHitByPoint(
- const gfx::PointF& screen_space_point) {
- if (!root_layer())
- return NULL;
- bool update_lcd_text = false;
- if (!UpdateDrawProperties(update_lcd_text))
- return NULL;
- bool use_property_trees =
- settings().use_property_trees || settings().verify_property_trees;
- FindWheelEventLayerFunctor func;
- FindClosestMatchingLayerDataForRecursion data_for_recursion;
- FindClosestMatchingLayer(
- screen_space_point, root_layer(), func, property_trees_.transform_tree,
- property_trees_.clip_tree, use_property_trees, &data_for_recursion);
- return data_for_recursion.closest_match;
-}
-
struct FindTouchEventLayerFunctor {
bool operator()(LayerImpl* layer) const {
return LayerHasTouchEventHandlersAt(screen_space_point, layer,

Powered by Google App Engine
This is Rietveld 408576698