Mark the ET_MOUSE_MOVED created from a pointer grab as synthesized.
When the mouse pointer is outside of the window and an overscroll
navigation is started with a touchscreen, an ET_MOUSE_MOVED event
is created from the EnterNotify XEvent in
DesktopWindowTreeHostX11::DispatchEvent. This is not marked as
synthesized, so it interferes with the overscroll gesture.
ET_MOUSE_MOVED events created from an EnterNotify are marked as
synthesized elsewhere, so we move this logic into
EventFlagsFromXEvent, so the events are consistently marked as
synthesized.
BUG=
731914
Review-Url:
https://codereview.chromium.org/2933353003
Cr-Commit-Position: refs/heads/master@{#484279}
Committed:
https://chromium.googlesource.com/chromium/src/+/08381b6e5c3fc97d80e116f770d4fe0f1c06e0e5