Refactors PipPositioner into subclass CollisionDetectionUtils.

Now that PIP is not the only window needing to detect collisions with
other windows, refactors generic collision detection logic from
the PipPositioner.

See go/chromeos-dwell-menu-design, Collision Avoidance section for

Bug: 943703
Change-Id: Idf50f81b7254f22b627858347d1f170d8dccf326
Commit-Queue: Katie Dektar <>
Reviewed-by: Mitsuru Oshima (Slow 4/22-26) <>
Reviewed-by: Eliot Courtney <>
Cr-Commit-Position: refs/heads/master@{#653700}
14 files changed