Ignore mouse position in ShelfLayoutManager if cursor is hidden

Some decisions regarding shelf visibility are made based on the
current mouse position. It leads to counter-intuitive behavior when
mouse events are followed by touch and the cursor is hidden (see bug).

Bug: 963977
Test: modified ShelfLayoutManagerTest.AutoHide
Change-Id: I82e269db0df0429e73270e28c5f431ffc6f0ca7f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1623136
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Commit-Queue: Vladislav Kaznacheev <kaznacheev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662038}
2 files changed