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

Issue 10835047: Allow the cursor to warp even when a window is dragged (Closed)

Created:
8 years, 4 months ago by Yusuke Sato
Modified:
8 years, 4 months ago
Reviewers:
oshima, Daniel Erat, sky
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, oshima, mazda
Visibility:
Public.

Description

Allow the cursor to warp even when a window is dragged. This is the first step toward implementing crbug.com/136816 (Implement dragging window from one display to another). BUG=136816 TEST=try Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150116

Patch Set 1 : review #

Patch Set 2 : Call set_allow_warp_during_lock only when the component is HTCAPTION #

Patch Set 3 : do not move modal windows to another display #

Total comments: 4

Patch Set 4 : address comments #

Total comments: 28

Patch Set 5 : address comments #

Patch Set 6 : don't check mouse lock status in display controller #

Total comments: 2

Patch Set 7 : style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -72 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ash/display/display_controller.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M ash/display/display_controller.cc View 1 2 3 4 5 3 chunks +26 lines, -18 lines 0 comments Download
M ash/display/mouse_cursor_event_filter.cc View 1 2 3 4 1 chunk +8 lines, -3 lines 0 comments Download
M ash/display/screen_position_controller.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ash/extended_desktop_unittest.cc View 1 2 3 4 5 3 chunks +18 lines, -17 lines 0 comments Download
M ash/screen_ash.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ash/shell.h View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 1 chunk +0 lines, -14 lines 0 comments Download
M ash/ui_controls_ash.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
A ash/wm/coordinate_conversion.h View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
A ash/wm/coordinate_conversion.cc View 1 2 3 4 1 chunk +91 lines, -0 lines 0 comments Download
M ash/wm/default_window_resizer.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M ash/wm/stacking_controller.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/workspace/phantom_window_controller.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 2 3 4 5 6 5 chunks +31 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/tabs/dock_info_ash.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Yusuke Sato
Scott, could you have a look at this? This is for M22 Chrome OS.
8 years, 4 months ago (2012-07-31 17:24:28 UTC) #1
Yusuke Sato
On 2012/07/31 17:24:28, Yusuke Sato wrote: > Scott, could you have a look at this? ...
8 years, 4 months ago (2012-08-02 16:22:35 UTC) #2
sky
http://codereview.chromium.org/10835047/diff/7003/ash/shell.cc File ash/shell.cc (right): http://codereview.chromium.org/10835047/diff/7003/ash/shell.cc#newcode791 ash/shell.cc:791: std::pair<aura::RootWindow*, gfx::Point> Shell::NormalizeLocationInDragEvent( This feels like the wrong place ...
8 years, 4 months ago (2012-08-02 23:28:31 UTC) #3
Yusuke Sato
Please take another look. http://codereview.chromium.org/10835047/diff/7003/ash/shell.cc File ash/shell.cc (right): http://codereview.chromium.org/10835047/diff/7003/ash/shell.cc#newcode791 ash/shell.cc:791: std::pair<aura::RootWindow*, gfx::Point> Shell::NormalizeLocationInDragEvent( On 2012/08/02 ...
8 years, 4 months ago (2012-08-03 01:52:11 UTC) #4
sky
http://codereview.chromium.org/10835047/diff/7004/ash/display/display_controller.cc File ash/display/display_controller.cc (right): http://codereview.chromium.org/10835047/diff/7004/ash/display/display_controller.cc#newcode128 ash/display/display_controller.cc:128: bool is_cursor_locked) { Can't DisplayController determine if the cursor ...
8 years, 4 months ago (2012-08-03 17:07:18 UTC) #5
sky
Part of my confusion in this patch likely stems from a lack of understanding on ...
8 years, 4 months ago (2012-08-03 17:08:35 UTC) #6
sky
Added Dan.
8 years, 4 months ago (2012-08-03 17:08:54 UTC) #7
Daniel Erat
http://codereview.chromium.org/10835047/diff/7004/ash/display/display_controller.h File ash/display/display_controller.h (right): http://codereview.chromium.org/10835047/diff/7004/ash/display/display_controller.h#newcode72 ash/display/display_controller.h:72: allow_warp_during_lock_ = allow_warp_during_lock; nit: s/allow_warp/allow_mouse_warp/ or similar http://codereview.chromium.org/10835047/diff/7004/ash/display/display_controller.h#newcode104 ash/display/display_controller.h:104: ...
8 years, 4 months ago (2012-08-03 19:43:10 UTC) #8
Yusuke Sato
Added more comment to ash/wm/coordinate_conversion.h following Scott's suggestion. Please take another look. http://codereview.chromium.org/10835047/diff/7004/ash/display/display_controller.cc File ash/display/display_controller.cc ...
8 years, 4 months ago (2012-08-03 23:18:45 UTC) #9
sky
LGTM
8 years, 4 months ago (2012-08-06 14:23:18 UTC) #10
Daniel Erat
http://codereview.chromium.org/10835047/diff/7004/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): http://codereview.chromium.org/10835047/diff/7004/ash/display/mouse_cursor_event_filter.cc#newcode43 ash/display/mouse_cursor_event_filter.cc:43: if (!is_cursor_locked) { On 2012/08/03 23:18:45, Yusuke Sato wrote: ...
8 years, 4 months ago (2012-08-06 14:52:00 UTC) #11
oshima
http://codereview.chromium.org/10835047/diff/7004/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): http://codereview.chromium.org/10835047/diff/7004/ash/display/mouse_cursor_event_filter.cc#newcode43 ash/display/mouse_cursor_event_filter.cc:43: if (!is_cursor_locked) { On 2012/08/06 14:52:00, Daniel Erat wrote: ...
8 years, 4 months ago (2012-08-06 15:28:33 UTC) #12
Yusuke Sato
http://codereview.chromium.org/10835047/diff/7004/ash/display/mouse_cursor_event_filter.cc File ash/display/mouse_cursor_event_filter.cc (right): http://codereview.chromium.org/10835047/diff/7004/ash/display/mouse_cursor_event_filter.cc#newcode43 ash/display/mouse_cursor_event_filter.cc:43: if (!is_cursor_locked) { On 2012/08/06 15:28:33, oshima wrote: > ...
8 years, 4 months ago (2012-08-06 17:30:14 UTC) #13
Daniel Erat
LGTM. Thanks! http://codereview.chromium.org/10835047/diff/3018/ash/wm/workspace/workspace_window_resizer.cc File ash/wm/workspace/workspace_window_resizer.cc (right): http://codereview.chromium.org/10835047/diff/3018/ash/wm/workspace/workspace_window_resizer.cc#newcode23 ash/wm/workspace/workspace_window_resizer.cc:23: #include "ui/aura/root_window.h" nit: fix alphabetization
8 years, 4 months ago (2012-08-06 18:16:20 UTC) #14
Yusuke Sato
8 years, 4 months ago (2012-08-06 18:27:05 UTC) #15
http://codereview.chromium.org/10835047/diff/3018/ash/wm/workspace/workspace_...
File ash/wm/workspace/workspace_window_resizer.cc (right):

http://codereview.chromium.org/10835047/diff/3018/ash/wm/workspace/workspace_...
ash/wm/workspace/workspace_window_resizer.cc:23: #include
"ui/aura/root_window.h"
On 2012/08/06 18:16:20, Daniel Erat wrote:
> nit: fix alphabetization

Done.

Powered by Google App Engine
This is Rietveld 408576698