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

Issue 23645009: Make resizing a window by snapping it left or right take into account the window's minimum width (Closed)

Created:
7 years, 3 months ago by pkotwicz
Modified:
7 years, 3 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Make resizing a window by snapping it left or right take into account the window's minimum width. Previously the lack of consideration of the minimum width resulted in the window ending up partially offscreen when snapped to a smaller width than its minimum width BUG=None TEST=SnapSizerTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222402

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -22 lines) Patch
M ash/ash.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/workspace/snap_sizer.cc View 1 2 4 chunks +59 lines, -22 lines 0 comments Download
A ash/wm/workspace/snap_sizer_unittest.cc View 1 1 chunk +100 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
pkotwicz
skuhne@, can you please take a look?
7 years, 3 months ago (2013-09-08 02:28:54 UTC) #1
Mr4D (OOO till 08-26)
lgtm with a few nits. https://codereview.chromium.org/23645009/diff/2001/ash/wm/workspace/snap_sizer.cc File ash/wm/workspace/snap_sizer.cc (right): https://codereview.chromium.org/23645009/diff/2001/ash/wm/workspace/snap_sizer.cc#newcode54 ash/wm/workspace/snap_sizer.cc:54: // ash::wm::CanSnapWindow() returns false ...
7 years, 3 months ago (2013-09-08 17:31:30 UTC) #2
pkotwicz
jamescook@ for OWNERS https://codereview.chromium.org/23645009/diff/2001/ash/wm/workspace/snap_sizer.cc File ash/wm/workspace/snap_sizer.cc (right): https://codereview.chromium.org/23645009/diff/2001/ash/wm/workspace/snap_sizer.cc#newcode96 ash/wm/workspace/snap_sizer.cc:96: ideal_width_list.push_back(minimum_width); I now check if |minimum_width| ...
7 years, 3 months ago (2013-09-09 02:22:45 UTC) #3
James Cook
LGTM What is the current default size if you snap a window? Half the screen? ...
7 years, 3 months ago (2013-09-09 22:41:10 UTC) #4
James Cook
https://codereview.chromium.org/23645009/diff/20001/ash/wm/workspace/snap_sizer.cc File ash/wm/workspace/snap_sizer.cc (right): https://codereview.chromium.org/23645009/diff/20001/ash/wm/workspace/snap_sizer.cc#newcode196 ash/wm/workspace/snap_sizer.cc:196: return GetTargetBoundsForSize(current % usable_width_.size()); Also, if the loop above ...
7 years, 3 months ago (2013-09-09 23:03:00 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/23645009/20001
7 years, 3 months ago (2013-09-10 15:34:11 UTC) #6
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=75755
7 years, 3 months ago (2013-09-10 18:47:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/23645009/50001
7 years, 3 months ago (2013-09-10 19:26:53 UTC) #8
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 23:46:52 UTC) #9
Message was sent while issue was closed.
Change committed as 222402

Powered by Google App Engine
This is Rietveld 408576698