ozone: dri: Use screen location for mouse event dispatch
commitb0b4b466ae3e2d514a6e8ecd9a2ed89494c51004
authorspang <spang@chromium.org>
Fri, 28 Nov 2014 06:53:46 +0000 (27 22:53 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 28 Nov 2014 06:53:59 +0000 (28 06:53 +0000)
tree4d884161895affa8d352c8907fb0fd5cc40da7d1
parentdccf76d1458448a0a8e45bd7c0e2cee74473a38d
ozone: dri: Use screen location for mouse event dispatch

This works a lot more naturally (no "is window under cursor" checks
during mouse event dispatch) and also will make event coordinates during
capture less awkward (events must be reported relative to the window
origin, but are not bounded by it during capture).

This converts mouse events. Touch events are a followup.

BUG=437035
TEST=unit tests, manual testing on link_freon

Review URL: https://codereview.chromium.org/762973002

Cr-Commit-Position: refs/heads/master@{#306052}
ui/events/ozone/evdev/cursor_delegate_evdev.h
ui/ozone/platform/dri/dri_cursor.cc
ui/ozone/platform/dri/dri_window.cc