Use OnDragFinished instead of the presence of DragDetails for bounds reason.

Clean up of DragDetails happens at a later time, so any bounds updates
that occur between OnDragFinished and the deletion of the DragDetails
will be incorrectly marked as a drag move or resize.

drag move.

Bug: b/132853334
Test: PIP window does not get stuck in the middle of the screen after
Change-Id: I2f7d5db0e033768190da69e178d082f8a8fe2407
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1614764
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Commit-Queue: Eliot Courtney <edcourtney@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661995}
2 files changed