From f206a40dcff89bf50517b1b4e109c25c277bad43 Mon Sep 17 00:00:00 2001 From: dtapuska Date: Fri, 5 Feb 2016 13:36:02 -0800 Subject: Communicate whether passive event listeners exist to cc. cc does nothing with these new fields being set other than plumbing them through the pipeline to be later queried on the layer_impl. Add an additional field whether touch event listeners exist on the layer (which unfortunately is effectively implement as an entire document field in the blink EventListenerRegistry; this can be improved). There still exists TouchRegionRects that indicate the areas of blocking event listeners; but whether a passive event listener exists will be indicated in this field. It is intended that this model will be replicated with property trees when it is ready. BUG=489802 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1577263004 Cr-Commit-Position: refs/heads/master@{#373915} --- cc/proto/layer_tree_host.proto | 3 ++- cc/proto/layer_tree_settings.proto | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'cc/proto') diff --git a/cc/proto/layer_tree_host.proto b/cc/proto/layer_tree_host.proto index 9a6ac11..d1d78e7 100644 --- a/cc/proto/layer_tree_host.proto +++ b/cc/proto/layer_tree_host.proto @@ -53,6 +53,7 @@ message LayerTreeHost { optional PropertyTrees property_trees = 31; optional uint32 surface_id_namespace = 32; optional uint32 next_surface_sequence = 33; - optional bool have_wheel_event_handlers = 34; + optional uint32 wheel_event_listener_properties = 34; optional bool have_scroll_event_handlers = 35; + optional uint32 touch_event_listener_properties = 36; } diff --git a/cc/proto/layer_tree_settings.proto b/cc/proto/layer_tree_settings.proto index 1c0bb85..844d75b1 100644 --- a/cc/proto/layer_tree_settings.proto +++ b/cc/proto/layer_tree_settings.proto @@ -70,4 +70,5 @@ message LayerTreeSettings { optional int32 max_staging_buffer_usage_in_bytes = 47; optional ManagedMemoryPolicy memory_policy = 48; optional LayerTreeDebugState initial_debug_state = 49; + optional bool use_mouse_wheel_gestures = 50; } -- cgit v1.1