chrome/android: Push EventFilters into the Layout implementations.
EventFilters are currently built by the LayoutManager and all gestures are routed through it to the active layout. This indirection is unnecessary since only the StackLayout requires gesture handling. This also ends up exposing public APIs on the Layouts making it difficult to follow the path for events from different sources (CompositorView vs the Toolbar). This change pushes EventFilters deeper into the Layout implementations, so the Layouts directly consume touch events and generate gestures if necessary. Layout still has an API for swipe gestures coming from the toolbar. BUG= Review-Url: https://codereview.chromium.org/2774443002 Cr-Original-Commit-Position: refs/heads/master@{#459980} Committed: https://chromium.googlesource.com/chromium/src/+/ef25f0df9d626028752de7d945d89abe15d39dfb Review-Url: https://codereview.chromium.org/2774443002 Cr-Commit-Position: refs/heads/master@{#460525}
Showing
This diff is collapsed.
Please register or sign in to comment