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

Issue 2538293002: Fix dragging snapped window to another display landing the window in the wrong bounds (Closed)

Created:
4 years ago by afakhry
Modified:
4 years ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix dragging snapped window to another display landing the window in the wrong bounds Dragging the snapped window to another display used to restore the wrong bounds based on still-not-updated-yet root window during the drag. This resulted in the window landing below the shelf and almost entirely not visible. This CL fixes the issue and adds a test. BUG=666836 TEST=ash_unittests --gtest_filter=ToplevelWindowEventHandlerTest.DragSnappedWindowToExternalDisplay Committed: https://crrev.com/cfb2ecbd4b3489acb4375ee9243176bd7ebd78ff Cr-Commit-Position: refs/heads/master@{#435747}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Oshima's comment #

Patch Set 3 : Run test only on chromeos #

Patch Set 4 : I just needed to rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -8 lines) Patch
M ash/common/wm/default_state.cc View 1 1 chunk +7 lines, -2 lines 0 comments Download
M ash/common/wm/workspace/workspace_window_resizer.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M ash/wm/toplevel_window_event_handler_unittest.cc View 1 2 3 3 chunks +43 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
afakhry
Oshima-san, please take a look, thanks!
4 years ago (2016-12-01 01:11:31 UTC) #4
oshima
lgtm https://codereview.chromium.org/2538293002/diff/1/ash/common/wm/default_state.cc File ash/common/wm/default_state.cc (right): https://codereview.chromium.org/2538293002/diff/1/ash/common/wm/default_state.cc#newcode688 ash/common/wm/default_state.cc:688: // display. would you mind adding a reference ...
4 years ago (2016-12-01 18:59:43 UTC) #7
afakhry
https://codereview.chromium.org/2538293002/diff/1/ash/common/wm/default_state.cc File ash/common/wm/default_state.cc (right): https://codereview.chromium.org/2538293002/diff/1/ash/common/wm/default_state.cc#newcode688 ash/common/wm/default_state.cc:688: // display. On 2016/12/01 18:59:43, oshima wrote: > would ...
4 years ago (2016-12-01 20:58:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2538293002/20001
4 years ago (2016-12-01 20:58:55 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/348220)
4 years ago (2016-12-01 21:11:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2538293002/40001
4 years ago (2016-12-01 21:35:35 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/325588)
4 years ago (2016-12-01 21:57:50 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2538293002/60001
4 years ago (2016-12-01 22:19:25 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-01 22:50:24 UTC) #23
commit-bot: I haz the power
4 years ago (2016-12-01 22:51:58 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cfb2ecbd4b3489acb4375ee9243176bd7ebd78ff
Cr-Commit-Position: refs/heads/master@{#435747}

Powered by Google App Engine
This is Rietveld 408576698