Transfer events to new gesture target before PrepareForDrag.

It turns out PrepareForDrag calls into CaptureController via
ScopedWindowResizer which inspects the gesture state. Transferring the
events earlier avoids us from receiving gesture cancelled events.

	not moving anywhere.

Bug: b/124026845
Test: Drag-to-move via touch of an Android PIP window works instead of
Change-Id: Ib1a4bb5c09bff6d9529805e0a778c10f5dcaf852
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1498803
Commit-Queue: Eliot Courtney <edcourtney@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Cr-Commit-Position: refs/heads/master@{#637999}
1 file changed