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

Issue 93873013: Make sure the dragged window is smaller than work area in the target display (Closed)

Created:
7 years ago by oshima
Modified:
7 years ago
Reviewers:
varkha, Jun Mukai
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, tfarina, mazda+watch_chromium.org, dcheng, kalyank, ben+ash_chromium.org
Visibility:
Public.

Description

Make sure the dragged window is smaller than work area in the target display. - makes sure that minimum amount of window is visible when dropped. - When moving a window to another due to display disconnect, try to keep relative position in the work are, rather than absolute position to the root window. BUG=321702 TEST=covered by test RootWindowController::MoveWindows_Basic DragWindowResizerTest::WindowDragWithMultiDisplays Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240542 R=mukai@chromium.org, varkha@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241114

Patch Set 1 : #

Total comments: 11

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -27 lines) Patch
M ash/root_window_controller.cc View 1 2 3 2 chunks +33 lines, -1 line 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 6 chunks +14 lines, -14 lines 0 comments Download
M ash/wm/drag_window_resizer.cc View 1 chunk +23 lines, -3 lines 0 comments Download
M ash/wm/drag_window_resizer_unittest.cc View 1 2 3 4 2 chunks +54 lines, -1 line 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 1 1 chunk +14 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
oshima
7 years ago (2013-12-11 09:19:01 UTC) #1
varkha
Looks good, other than I need to convince myself that vertical arrangement of displays is ...
7 years ago (2013-12-12 16:20:45 UTC) #2
oshima
https://codereview.chromium.org/93873013/diff/150001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/93873013/diff/150001/ash/root_window_controller.cc#newcode105 ash/root_window_controller.cc:105: void AdjustBoundsRelativeToSize(const gfx::Size& src_size, On 2013/12/12 16:20:46, varkha wrote: ...
7 years ago (2013-12-12 19:07:14 UTC) #3
varkha
LGTM https://codereview.chromium.org/93873013/diff/150001/ash/wm/drag_window_resizer.cc File ash/wm/drag_window_resizer.cc (right): https://codereview.chromium.org/93873013/diff/150001/ash/wm/drag_window_resizer.cc#newcode138 ash/wm/drag_window_resizer.cc:138: bounds.set_height(size.height()); I understand - we are probably never ...
7 years ago (2013-12-12 22:10:47 UTC) #4
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years ago (2013-12-12 22:13:56 UTC) #5
oshima
mukai-san, would you mind taking a look?
7 years ago (2013-12-12 22:31:14 UTC) #6
Jun Mukai
lgtm
7 years ago (2013-12-12 22:58:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/93873013/190001
7 years ago (2013-12-12 23:08:17 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=203015
7 years ago (2013-12-13 01:02:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/93873013/190001
7 years ago (2013-12-13 01:05:48 UTC) #10
commit-bot: I haz the power
Change committed as 240542
7 years ago (2013-12-13 08:21:30 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/93873013/210001
7 years ago (2013-12-16 19:32:35 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) ash_unittests, browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=185172
7 years ago (2013-12-16 21:05:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/93873013/230001
7 years ago (2013-12-16 22:43:28 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=205360
7 years ago (2013-12-17 01:11:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/oshima@chromium.org/93873013/230001
7 years ago (2013-12-17 01:29:26 UTC) #16
oshima
7 years ago (2013-12-17 02:22:28 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 manually as r241114 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698