Undocks window first before side-snapping bounds. Side-snapped state is now maintained in order to properly deal with undocking into a side-snapped state.

BUG=320119
TEST=ash_unittests --gtest_filter=WorkspaceWindowResizerTest.Edge
TEST=ash_unittests --gtest_filter=AcceleratorControllerTest.WindowSnap
TEST=ash_unittests --gtest_filter=*DockedWindowResizerTest.SideSnapDocked/*

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237809 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 237809
"Ending" gesture events don't retarget on capture (WIP)

BUG=321116

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237810 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 237810