Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Issue 270863005: Use native coordinates to warp the cursor to another display. (Closed)

Created:
6 years, 7 months ago by oshima
Modified:
6 years, 7 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

Use native coordinates to warp the cursor to another display. This is roughly how this works. - Takes the bounds of the edge indicator in screen coords and convert to native coords - If the location of mouse in native coords moves into this bounds, we need to warp the mouse. - Convert the current mouse location in screen coords to the destination window's host coords. Adjust so that the location is inside the host window's bounds. No flag. I'll simply flip the flag if I need to disable this on branch. BUG=321699, 306632 TEST=TBD Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269758

Patch Set 1 : #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 1

Patch Set 4 : fix win build #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : fix win build #

Patch Set 7 : win builder fix #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -50 lines) Patch
M ash/display/display_controller.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/display/mouse_cursor_event_filter.h View 1 2 5 chunks +44 lines, -15 lines 0 comments Download
M ash/display/mouse_cursor_event_filter.cc View 1 2 3 4 5 11 chunks +232 lines, -11 lines 0 comments Download
M ash/display/mouse_cursor_event_filter_unittest.cc View 1 2 3 4 5 chunks +54 lines, -12 lines 0 comments Download
M ash/host/ash_remote_window_tree_host_win.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ash/host/ash_remote_window_tree_host_win.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M ash/host/ash_window_tree_host.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ash/host/ash_window_tree_host_win.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ash/host/ash_window_tree_host_x11.h View 2 chunks +2 lines, -0 lines 0 comments Download
M ash/host/ash_window_tree_host_x11.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/coordinate_conversion.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ash/wm/coordinate_conversion.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/drag_window_resizer_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/immersive_fullscreen_controller_unittest.cc View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
oshima
I'm still working on test, but the rest is ready. PTAL.
6 years, 7 months ago (2014-05-09 20:08:58 UTC) #1
Jun Mukai
lgtm if it passes the tests. a few nits https://codereview.chromium.org/270863005/diff/160001/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): https://codereview.chromium.org/270863005/diff/160001/ash/display/mouse_cursor_event_filter.cc#newcode45 ash/display/mouse_cursor_event_filter.cc:45: ...
6 years, 7 months ago (2014-05-09 21:01:56 UTC) #2
oshima
I updated the test. I also had to update the code to make it test ...
6 years, 7 months ago (2014-05-09 23:50:06 UTC) #3
Jun Mukai
https://codereview.chromium.org/270863005/diff/200001/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): https://codereview.chromium.org/270863005/diff/200001/ash/display/mouse_cursor_event_filter.cc#newcode293 ash/display/mouse_cursor_event_filter.cc:293: was_mouse_warped_ = true; Well, I got confused. We don't ...
6 years, 7 months ago (2014-05-10 01:26:20 UTC) #4
oshima
https://codereview.chromium.org/270863005/diff/200001/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): https://codereview.chromium.org/270863005/diff/200001/ash/display/mouse_cursor_event_filter.cc#newcode293 ash/display/mouse_cursor_event_filter.cc:293: was_mouse_warped_ = true; On 2014/05/10 01:26:20, Jun Mukai wrote: ...
6 years, 7 months ago (2014-05-10 14:58:06 UTC) #5
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 7 months ago (2014-05-10 14:58:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/270863005/220001
6 years, 7 months ago (2014-05-10 14:59:34 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-10 17:03:13 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-10 17:57:50 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/25371)
6 years, 7 months ago (2014-05-10 17:57:50 UTC) #10
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 7 months ago (2014-05-11 14:59:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/270863005/250015
6 years, 7 months ago (2014-05-11 14:59:11 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-11 18:56:16 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-11 19:19:44 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_compile_dbg/builds/18678)
6 years, 7 months ago (2014-05-11 19:19:44 UTC) #15
oshima
The CQ bit was checked by oshima@chromium.org
6 years, 7 months ago (2014-05-11 21:57:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/270863005/270001
6 years, 7 months ago (2014-05-11 21:58:02 UTC) #17
oshima_google
The CQ bit was unchecked by oshima@google.com
6 years, 7 months ago (2014-05-12 02:01:54 UTC) #18
oshima_google
The CQ bit was checked by oshima@google.com
6 years, 7 months ago (2014-05-12 02:02:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/270863005/290001
6 years, 7 months ago (2014-05-12 02:02:13 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-12 07:47:30 UTC) #21
commit-bot: I haz the power
6 years, 7 months ago (2014-05-12 09:39:51 UTC) #22
Message was sent while issue was closed.
Change committed as 269758

Powered by Google App Engine
This is Rietveld 408576698