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

Issue 424463002: Makes a window that has been resized to maximized bounds, then maximized and then restored shrink (Closed)

Created:
6 years, 5 months ago by varkha
Modified:
6 years, 4 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Project:
chromium
Visibility:
Public.

Description

Makes a window that has been resized to maximized bounds, then maximized and then restored shrink. This allows it to be resized easier after this sequence. BUG=392599 TEST=ash_unittests --gtest_filter="WindowStateTest.RestoredWindowBoundsShrink" TEST=unit_tests --gtest_filter="WindowSizerAshTest.DefaultStateBecomesMaximized" TEST=unit_tests --gtest_filter="WindowSizerAshTest*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287675

Patch Set 1 #

Patch Set 2 : Maximizes a window that has been resized to maximized bounds (added a test) #

Total comments: 6

Patch Set 3 : Maximizes a window that has been resized to maximized bounds (added a test) #

Total comments: 6

Patch Set 4 : Maximizes a window that has been resized to maximized bounds (comments) #

Patch Set 5 : Maximizes a window that has been resized to maximized bounds (only update size when unmaximizing) #

Total comments: 6

Patch Set 6 : Maximizes a window that has been resized to maximized bounds (comments and restrict to ash) #

Total comments: 8

Patch Set 7 : Maximizes a window that has been resized to maximized bounds (comments and nits) #

Patch Set 8 : Maximizes a window that has been resized to maximized bounds (fixed a test) #

Total comments: 17

Patch Set 9 : Maximizes a window that has been resized to maximized bounds (nits, restricts to tabbed browsers) #

Patch Set 10 : Maximizes a window that has been resized to maximized bounds (nits, restricts to tabbed browsers) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -38 lines) Patch
M ash/wm/default_state.cc View 1 2 3 4 5 6 1 chunk +14 lines, -2 lines 0 comments Download
M ash/wm/window_state_unittest.cc View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash.cc View 1 2 3 4 5 6 7 8 1 chunk +34 lines, -23 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc View 1 2 3 4 5 6 7 8 9 14 chunks +68 lines, -5 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_common_unittest.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/window_sizer/window_sizer_common_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
varkha
oshima@, could you please take a look?
6 years, 5 months ago (2014-07-26 00:55:55 UTC) #1
oshima
change lg. can you add a test?
6 years, 4 months ago (2014-07-28 20:46:33 UTC) #2
varkha
Added a test. PTAL.
6 years, 4 months ago (2014-07-29 15:42:57 UTC) #3
oshima
Once maximized by drag, a user cannot drag it back to the other size. Can ...
6 years, 4 months ago (2014-07-29 17:00:36 UTC) #4
oshima
On 2014/07/29 17:00:36, oshima wrote: > Once maximized by drag, a user cannot drag it ...
6 years, 4 months ago (2014-07-29 17:04:10 UTC) #5
varkha
> On 2014/07/29 17:00:36, oshima wrote: > More more edge case. When a new window ...
6 years, 4 months ago (2014-07-29 17:16:43 UTC) #6
oshima
On 2014/07/29 17:16:43, varkha wrote: > > On 2014/07/29 17:00:36, oshima wrote: > > More ...
6 years, 4 months ago (2014-07-29 17:23:51 UTC) #7
varkha
> On 2014/07/29 17:00:36, oshima wrote: > One more edge case. When a new window ...
6 years, 4 months ago (2014-07-29 22:19:43 UTC) #8
oshima
lgtm
6 years, 4 months ago (2014-07-30 01:33:37 UTC) #9
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 4 months ago (2014-07-30 02:02:01 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/424463002/100001
6 years, 4 months ago (2014-07-30 02:03:32 UTC) #11
varkha
+msw@ for OWNERS (chrome/browser/ui/window_sizer/window_sizer.cc).
6 years, 4 months ago (2014-07-30 02:51:33 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium.linux ...
6 years, 4 months ago (2014-07-30 05:22:23 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-07-30 05:26:18 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/869)
6 years, 4 months ago (2014-07-30 05:26:19 UTC) #15
msw
https://codereview.chromium.org/424463002/diff/100001/ash/wm/workspace/workspace_window_resizer.cc File ash/wm/workspace/workspace_window_resizer.cc (right): https://codereview.chromium.org/424463002/diff/100001/ash/wm/workspace/workspace_window_resizer.cc#newcode467 ash/wm/workspace/workspace_window_resizer.cc:467: if (!snapped && nit: a brief comment for this ...
6 years, 4 months ago (2014-07-30 05:46:37 UTC) #16
varkha
I have uploaded two patches following the offline discussion about the bug. One (PS4) merely ...
6 years, 4 months ago (2014-07-30 21:03:15 UTC) #17
pkotwicz
https://codereview.chromium.org/424463002/diff/180001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/424463002/diff/180001/ash/wm/default_state.cc#newcode520 ash/wm/default_state.cc:520: bounds_in_parent.Inset(10, 10, 10, 10); |bounds_in_parent| might be bigger than ...
6 years, 4 months ago (2014-07-31 03:39:57 UTC) #18
msw
https://codereview.chromium.org/424463002/diff/180001/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc File chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc (right): https://codereview.chromium.org/424463002/diff/180001/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc#newcode899 chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc:899: // Make a window bigger than the display work ...
6 years, 4 months ago (2014-07-31 04:03:24 UTC) #19
varkha
https://codereview.chromium.org/424463002/diff/180001/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc File chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc (right): https://codereview.chromium.org/424463002/diff/180001/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc#newcode899 chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc:899: // Make a window bigger than the display work ...
6 years, 4 months ago (2014-08-01 14:18:34 UTC) #20
msw
https://codereview.chromium.org/424463002/diff/180001/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc File chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc (right): https://codereview.chromium.org/424463002/diff/180001/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc#newcode899 chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc:899: // Make a window bigger than the display work ...
6 years, 4 months ago (2014-08-01 16:24:48 UTC) #21
varkha
On 2014/08/01 16:24:48, msw wrote: > https://codereview.chromium.org/424463002/diff/180001/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc > File chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc (right): > > https://codereview.chromium.org/424463002/diff/180001/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc#newcode899 > ...
6 years, 4 months ago (2014-08-01 17:06:20 UTC) #22
varkha
I've reworked this so as to not change behavior other then on ash. PTAL. https://codereview.chromium.org/424463002/diff/180001/ash/wm/default_state.cc ...
6 years, 4 months ago (2014-08-01 21:00:24 UTC) #23
msw
https://codereview.chromium.org/424463002/diff/200001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/424463002/diff/200001/ash/wm/default_state.cc#newcode517 ash/wm/default_state.cc:517: // This may happen if a window was resized ...
6 years, 4 months ago (2014-08-05 01:42:58 UTC) #24
varkha
https://codereview.chromium.org/424463002/diff/200001/ash/wm/default_state.cc File ash/wm/default_state.cc (right): https://codereview.chromium.org/424463002/diff/200001/ash/wm/default_state.cc#newcode517 ash/wm/default_state.cc:517: // This may happen if a window was resized ...
6 years, 4 months ago (2014-08-05 15:00:21 UTC) #25
varkha
Taking a look at win test bots failing...
6 years, 4 months ago (2014-08-05 15:02:36 UTC) #26
varkha
Fixed the failing tests, PTAL.
6 years, 4 months ago (2014-08-05 15:26:36 UTC) #27
msw
+skuhne for GetWindowShowState changes. +jschuh for security thoughts on auto-maximizing popups. https://codereview.chromium.org/424463002/diff/240001/chrome/browser/ui/window_sizer/window_sizer.h File chrome/browser/ui/window_sizer/window_sizer.h (right): ...
6 years, 4 months ago (2014-08-05 16:44:39 UTC) #28
Mr4D (OOO till 08-26)
lgtm https://codereview.chromium.org/424463002/diff/240001/chrome/browser/ui/window_sizer/window_sizer_common_unittest.h File chrome/browser/ui/window_sizer/window_sizer_common_unittest.h (right): https://codereview.chromium.org/424463002/diff/240001/chrome/browser/ui/window_sizer/window_sizer_common_unittest.h#newcode127 chrome/browser/ui/window_sizer/window_sizer_common_unittest.h:127: // Sets up the various show states and ...
6 years, 4 months ago (2014-08-05 17:29:12 UTC) #29
varkha
https://codereview.chromium.org/424463002/diff/240001/chrome/browser/ui/window_sizer/window_sizer_ash.cc File chrome/browser/ui/window_sizer/window_sizer_ash.cc (right): https://codereview.chromium.org/424463002/diff/240001/chrome/browser/ui/window_sizer/window_sizer_ash.cc#newcode47 chrome/browser/ui/window_sizer/window_sizer_ash.cc:47: if (browser_->is_type_popup() && bounds->origin().IsOrigin()) { On 2014/08/05 16:44:38, msw ...
6 years, 4 months ago (2014-08-05 17:55:23 UTC) #30
msw
lgtm, thanks for addressing all my concerns.
6 years, 4 months ago (2014-08-05 18:07:33 UTC) #31
varkha
Thanks, very useful review. -jschuh (popups are unaffected in the latest patch).
6 years, 4 months ago (2014-08-05 19:00:45 UTC) #32
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 4 months ago (2014-08-05 19:00:56 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/424463002/280001
6 years, 4 months ago (2014-08-05 19:05:30 UTC) #34
varkha
The CQ bit was checked by varkha@chromium.org
6 years, 4 months ago (2014-08-05 21:08:02 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varkha@chromium.org/424463002/300001
6 years, 4 months ago (2014-08-05 21:08:45 UTC) #36
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-06 00:40:16 UTC) #37
commit-bot: I haz the power
6 years, 4 months ago (2014-08-06 04:36:24 UTC) #38
Message was sent while issue was closed.
Change committed as 287675

Powered by Google App Engine
This is Rietveld 408576698