summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-01 19:26:56 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-01 19:26:56 +0000
commit0d006ff992118ab00e1c2bd45e91a404be6e3127 (patch)
treec5d606ed04a32e3260f806bb1806b20dd2cf2250 /ash
parent509b14902f310a7c7de81d0bec953ef092de5f60 (diff)
downloadchromium_src-0d006ff992118ab00e1c2bd45e91a404be6e3127.zip
chromium_src-0d006ff992118ab00e1c2bd45e91a404be6e3127.tar.gz
chromium_src-0d006ff992118ab00e1c2bd45e91a404be6e3127.tar.bz2
Makes closing a window that triggers a workspace switch animate
again. I most likely broke this when I cleaned up the code. BUG=none TEST=none R=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/11370003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165470 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/wm/workspace/workspace_manager.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ash/wm/workspace/workspace_manager.cc b/ash/wm/workspace/workspace_manager.cc
index 91a5354..2fc33c1 100644
--- a/ash/wm/workspace/workspace_manager.cc
+++ b/ash/wm/workspace/workspace_manager.cc
@@ -552,6 +552,13 @@ void WorkspaceManager::HideWorkspace(
details.animate = true;
break;
+ case SWITCH_VISIBILITY_CHANGED:
+ // The window is most likely closing. Make the workspace visible for the
+ // duration of the switch so that the close animation is visible.
+ details.animate = true;
+ details.animate_scale = true;
+ break;
+
case SWITCH_MAXIMIZED_OR_RESTORED:
if (active_workspace_->is_maximized()) {
// Delay the hide until the animation is done.