Handle vertical scrolling with embedded WebViews.

Previously, Assistant cards (WebViews) would consume any event that
they processed. This prevented our container from scrolling effectively,
because scroll gestures would be consumed.

Now, we prevent the WebView from receiving anything other than
mouse click related events. We need to give it those events because
Assistant cards contain links.

To also support link taps via gesture, we need to route taps back
to the WebView's manually. We do this by converting tap gestures into
mouse events.

Bug: b:110039692
Change-Id: Id0d44af0651490ddf58b6e0e0c70c41fec3fa654
Reviewed-on: https://chromium-review.googlesource.com/1174961
Commit-Queue: David Black <dmblack@google.com>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583863}
3 files changed