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

Issue 21979005: Make sure that 30%of restored window is always visible. (Closed)

Created:
7 years, 4 months ago by oshima
Modified:
7 years, 4 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, Jun Mukai
Visibility:
Public.

Description

Make sure that 30% of restored window is always visible. WorkspaceLayoutManager::UpdateBoundsFromShowState change * Make sure the restore bounds fits to the workspace. * Minimized window doesn't have restore bounds, so use the window bounds to adjust the bounds. AdjustBoundsToEnsureWindowVisibility * Do not check Intersects because we always should make min width/height visible. define separate AdjustWindowsBoundsWhenAdded I also make the minimum percentage to 30% of width/height because 66% seems to be too much. This change is short term. This will be changed so that we keep relative position to the old display in new display. BUG=249043, 264044, 248961, 263862 TEST=covered by test R=jamescook@chromium.org, skuhne@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216258

Patch Set 1 : #

Total comments: 17

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Patch Set 6 : #

Total comments: 1

Patch Set 7 : AdjustWindowBoundsWhenAdded #

Total comments: 8

Patch Set 8 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -68 lines) Patch
ash/drag_drop/drag_drop_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
ash/wm/base_layout_manager.h View 1 2 3 4 5 6 7 1 chunk +11 lines, -9 lines 0 comments Download
ash/wm/base_layout_manager.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -6 lines 0 comments Download
ash/wm/property_util.h View 1 chunk +1 line, -1 line 0 comments Download
ash/wm/window_util.cc View 1 2 3 4 1 chunk +13 lines, -15 lines 0 comments Download
ash/wm/workspace/workspace_event_handler_unittest.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
ash/wm/workspace/workspace_layout_manager.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
ash/wm/workspace/workspace_layout_manager.cc View 1 2 3 4 5 6 7 7 chunks +64 lines, -23 lines 0 comments Download
ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 2 3 4 5 6 7 5 chunks +77 lines, -7 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
oshima
7 years, 4 months ago (2013-08-06 15:12:07 UTC) #1
Mr4D (OOO till 08-26)
Several comments. https://codereview.chromium.org/21979005/diff/37001/ash/wm/base_layout_manager.h File ash/wm/base_layout_manager.h (right): https://codereview.chromium.org/21979005/diff/37001/ash/wm/base_layout_manager.h#newcode97 ash/wm/base_layout_manager.h:97: virtual void AdjustWindowsBounds(AdjustWindowReason reason); I actually liked ...
7 years, 4 months ago (2013-08-06 20:22:51 UTC) #2
oshima
https://codereview.chromium.org/21979005/diff/37001/ash/wm/base_layout_manager.h File ash/wm/base_layout_manager.h (right): https://codereview.chromium.org/21979005/diff/37001/ash/wm/base_layout_manager.h#newcode97 ash/wm/base_layout_manager.h:97: virtual void AdjustWindowsBounds(AdjustWindowReason reason); On 2013/08/06 20:22:51, Mr4D wrote: ...
7 years, 4 months ago (2013-08-06 23:13:20 UTC) #3
Mr4D (OOO till 08-26)
Sorry two more nits. https://codereview.chromium.org/21979005/diff/28003/ash/wm/base_layout_manager.h File ash/wm/base_layout_manager.h (right): https://codereview.chromium.org/21979005/diff/28003/ash/wm/base_layout_manager.h#newcode102 ash/wm/base_layout_manager.h:102: AdjustWindowReason reason); Sorry about this ...
7 years, 4 months ago (2013-08-06 23:28:56 UTC) #4
oshima
https://codereview.chromium.org/21979005/diff/28003/ash/wm/base_layout_manager.h File ash/wm/base_layout_manager.h (right): https://codereview.chromium.org/21979005/diff/28003/ash/wm/base_layout_manager.h#newcode102 ash/wm/base_layout_manager.h:102: AdjustWindowReason reason); On 2013/08/06 23:28:56, Mr4D wrote: > Sorry ...
7 years, 4 months ago (2013-08-06 23:40:36 UTC) #5
oshima
Uploaded new patch with separate method AjustWindowBoundsWhenAdded. Let me know if you prefer this way ...
7 years, 4 months ago (2013-08-06 23:48:15 UTC) #6
Mr4D (OOO till 08-26)
Sorry one more nit, but then lgtm. https://codereview.chromium.org/21979005/diff/53001/ash/wm/workspace/workspace_layout_manager.cc File ash/wm/workspace/workspace_layout_manager.cc (right): https://codereview.chromium.org/21979005/diff/53001/ash/wm/workspace/workspace_layout_manager.cc#newcode159 ash/wm/workspace/workspace_layout_manager.cc:159: oom I ...
7 years, 4 months ago (2013-08-06 23:48:50 UTC) #7
oshima
On Tue, Aug 6, 2013 at 4:48 PM, <skuhne@chromium.org> wrote: > Sorry one more nit, ...
7 years, 4 months ago (2013-08-06 23:51:41 UTC) #8
oshima
jamescook -> OWNERS
7 years, 4 months ago (2013-08-06 23:52:25 UTC) #9
James Cook
LGTM with nits https://codereview.chromium.org/21979005/diff/60001/ash/wm/base_layout_manager.h File ash/wm/base_layout_manager.h (right): https://codereview.chromium.org/21979005/diff/60001/ash/wm/base_layout_manager.h#newcode90 ash/wm/base_layout_manager.h:90: // the display on which the ...
7 years, 4 months ago (2013-08-07 00:36:32 UTC) #10
oshima
https://codereview.chromium.org/21979005/diff/60001/ash/wm/base_layout_manager.h File ash/wm/base_layout_manager.h (right): https://codereview.chromium.org/21979005/diff/60001/ash/wm/base_layout_manager.h#newcode90 ash/wm/base_layout_manager.h:90: // the display on which the window exists has ...
7 years, 4 months ago (2013-08-07 16:56:38 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/21979005/65001
7 years, 4 months ago (2013-08-07 17:00:23 UTC) #12
oshima
+cc:mukai
7 years, 4 months ago (2013-08-07 18:25:54 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/21979005/65001
7 years, 4 months ago (2013-08-07 19:04:14 UTC) #14
oshima
7 years, 4 months ago (2013-08-07 20:07:06 UTC) #15
Message was sent while issue was closed.
Committed patchset #8 manually as r216258 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698