Enable pointer warping with multiple displays under Ozone

Mouse events generated from Ozone do not have a NativeEvent associated
with them and so they need to go through the non native event based flow
in the multi-monitor warping code. With this change it is now possible
to move the pointer from one display to the next under Ozone.

TEST=On link_freon attach a second display and move the pointer from
one display to the other.
BUG=361144

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278406 0039d316-1c4b-4281-b951-d872f2087c98
parent 70b7beba
...@@ -42,7 +42,12 @@ const int kIndicatorThickness = 1; ...@@ -42,7 +42,12 @@ const int kIndicatorThickness = 1;
// This is to disable the new mouse warp logic in case // This is to disable the new mouse warp logic in case
// it caused the problem in the branch. // it caused the problem in the branch.
// Events from Ozone don't have a native event
#if defined(USE_OZONE)
bool enable_mouse_warp_in_native_coords = false;
#else
bool enable_mouse_warp_in_native_coords = true; bool enable_mouse_warp_in_native_coords = true;
#endif
void ConvertPointFromScreenToNative(const aura::Window* root_window, void ConvertPointFromScreenToNative(const aura::Window* root_window,
gfx::Point* point) { gfx::Point* point) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment