Doesn't save restore size for dragged docked windows
commit1bd474bdb2edc77733d347ddbbfabe81ef36c09b
authorvarkha <varkha@chromium.org>
Thu, 4 Jun 2015 22:46:01 +0000 (4 15:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 4 Jun 2015 22:46:40 +0000 (4 22:46 +0000)
tree75c7995f203c97768fba4acf7ba6fee543fb23c0
parent5f7fab58725d10b1ccb26f70c3dfcfc19610f259
Doesn't save restore size for dragged docked windows

The code used to save width for the docked window assuming that the user actually intended window resizes while a window is docked to be persistent. This assumption is however wrong in most cases so this CL treats those resizes as temporary - when a window is undocked it gets resized to the restore size that existed before it was docked. This makes entering docked state more like entering maximized mode in which any size changes are not persisted and window gets its restore bounds when it gets restored.

BUG=496859
TEST=DockedWindowResizerTest.ResizingKeepsSize

Review URL: https://codereview.chromium.org/1155123004

Cr-Commit-Position: refs/heads/master@{#332946}
ash/wm/dock/docked_window_resizer.cc
ash/wm/dock/docked_window_resizer_unittest.cc