Commit 46a50197 authored by girard@chromium.org's avatar girard@chromium.org

Kill animations on screen rotation.

BUG=376038

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272906 0039d316-1c4b-4281-b951-d872f2087c98
parent 6540eb67
......@@ -176,10 +176,14 @@ void MaximizeModeWindowState::OnWMEvent(wm::WindowState* window_state,
}
break;
case wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED:
case wm::WM_EVENT_DISPLAY_BOUNDS_CHANGED:
if (current_state_type_ != wm::WINDOW_STATE_TYPE_MINIMIZED)
UpdateBounds(window_state, true);
break;
case wm::WM_EVENT_DISPLAY_BOUNDS_CHANGED:
// Don't animate on a screen rotation - just snap to new size.
if (current_state_type_ != wm::WINDOW_STATE_TYPE_MINIMIZED)
UpdateBounds(window_state, false);
break;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment