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

Issue 1601383002: Support moving the cursor and dragging windows to 3+ displays. (Closed)

Created:
4 years, 11 months ago by jdufault
Modified:
4 years, 11 months ago
Reviewers:
stevenjb, oshima
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support moving the cursor and dragging windows to 3+ displays. BUG=573289 Committed: https://crrev.com/fb0a421238b1b0a71a2c7d5d3de2ef57a20028d0 Cr-Commit-Position: refs/heads/master@{#370794}

Patch Set 1 #

Patch Set 2 : Fix windows build warnings, change method placement in cc file, remove/add comments #

Total comments: 4

Patch Set 3 : Add test #

Total comments: 1

Patch Set 4 : Update test to use gfx::Rect directly instead of string compare #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -202 lines) Patch
M ash/display/extended_mouse_warp_controller.h View 1 2 4 chunks +53 lines, -21 lines 2 comments Download
M ash/display/extended_mouse_warp_controller.cc View 1 2 4 chunks +148 lines, -109 lines 4 comments Download
M ash/display/extended_mouse_warp_controller_unittest.cc View 1 2 3 4 chunks +136 lines, -72 lines 1 comment Download

Messages

Total messages: 15 (5 generated)
jdufault
Oshima, PTAL. Thanks!
4 years, 11 months ago (2016-01-19 22:36:07 UTC) #2
oshima
can you add a test case with 3 displays? https://codereview.chromium.org/1601383002/diff/20001/ash/display/extended_mouse_warp_controller.cc File ash/display/extended_mouse_warp_controller.cc (right): https://codereview.chromium.org/1601383002/diff/20001/ash/display/extended_mouse_warp_controller.cc#newcode92 ash/display/extended_mouse_warp_controller.cc:92: ...
4 years, 11 months ago (2016-01-20 18:35:55 UTC) #3
jdufault
I've added the test. https://codereview.chromium.org/1601383002/diff/20001/ash/display/extended_mouse_warp_controller.cc File ash/display/extended_mouse_warp_controller.cc (right): https://codereview.chromium.org/1601383002/diff/20001/ash/display/extended_mouse_warp_controller.cc#newcode92 ash/display/extended_mouse_warp_controller.cc:92: else { On 2016/01/20 18:35:55, ...
4 years, 11 months ago (2016-01-20 23:37:16 UTC) #4
oshima
lgtm https://codereview.chromium.org/1601383002/diff/40001/ash/display/extended_mouse_warp_controller_unittest.cc File ash/display/extended_mouse_warp_controller_unittest.cc (right): https://codereview.chromium.org/1601383002/diff/40001/ash/display/extended_mouse_warp_controller_unittest.cc#newcode262 ash/display/extended_mouse_warp_controller_unittest.cc:262: mouse_warp_controller()->warp_regions_[0]->a_indicator_bounds.ToString()); forgot to mention. EXPECT_ can now pretty ...
4 years, 11 months ago (2016-01-21 01:17:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1601383002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1601383002/60001
4 years, 11 months ago (2016-01-21 20:50:32 UTC) #8
jdufault
> mouse_warp_controller()->warp_regions_[0]->a_indicator_bounds.ToString()); > forgot to mention. EXPECT_ can now pretty print gfx::Rect object, so > ...
4 years, 11 months ago (2016-01-21 20:51:35 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-21 21:40:48 UTC) #10
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/fb0a421238b1b0a71a2c7d5d3de2ef57a20028d0 Cr-Commit-Position: refs/heads/master@{#370794}
4 years, 11 months ago (2016-01-21 21:42:17 UTC) #12
stevenjb
Some drive-by comments as I attempted to examine the changes. I'm still getting up to ...
4 years, 11 months ago (2016-01-23 02:09:38 UTC) #14
jdufault
4 years, 11 months ago (2016-01-25 21:32:16 UTC) #15
Message was sent while issue was closed.
Comments addressed; the patch is at https://codereview.chromium.org/1631023002/.

https://codereview.chromium.org/1601383002/diff/60001/ash/display/extended_mo...
File ash/display/extended_mouse_warp_controller.cc (right):

https://codereview.chromium.org/1601383002/diff/60001/ash/display/extended_mo...
ash/display/extended_mouse_warp_controller.cc:102: drag_source != nullptr);
On 2016/01/23 02:09:38, stevenjb wrote:
> {} around multi-line if clauses

Done.

https://codereview.chromium.org/1601383002/diff/60001/ash/display/extended_mo...
ash/display/extended_mouse_warp_controller.cc:151: bool drag_source) {
On 2016/01/23 02:09:38, stevenjb wrote:
> nit: has_drag_source

Done.

https://codereview.chromium.org/1601383002/diff/60001/ash/display/extended_mo...
File ash/display/extended_mouse_warp_controller.h (right):

https://codereview.chromium.org/1601383002/diff/60001/ash/display/extended_mo...
ash/display/extended_mouse_warp_controller.h:81:
scoped_ptr<SharedDisplayEdgeIndicator> shared_display_edge_indicator;
On 2016/01/23 02:09:38, stevenjb wrote:
> FWIW, typically we use class for anything that has non trivial logic or
members.
> Also, this can be forward declared here, and defined in the C++ file since we
> are only referencing (scoped) pointers in the header.
> 
> i.e.
> 
> class WarpRegion;
> 
> std::vector<scoped_ptr<WarpRegion>> warp_regions_;

I've changed this from a struct to a class. This is declared in the header
because tests need to access the definitions.

Powered by Google App Engine
This is Rietveld 408576698