Commit 2788083f authored by wittman@chromium.org's avatar wittman@chromium.org

Enable rotate style visibility animation for new style web contents modal dialog

Use of this animation was originally enabled during the initial constrained
window styling changes but was removed along with those changes.  Re-enable it
now for the web contents modal dialog.

Original review: http://crrev.com/11275028
Original bug: http://crbug.com/157796

BUG=166075

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194477 0039d316-1c4b-4281-b951-d872f2087c98
parent 208a04f2
...@@ -59,6 +59,12 @@ class NativeWebContentsModalDialogManagerViews ...@@ -59,6 +59,12 @@ class NativeWebContentsModalDialogManagerViews
// TODO(wittman): remove once the new visual style is complete // TODO(wittman): remove once the new visual style is complete
widget->GetNativeWindow()->SetProperty(aura::client::kConstrainedWindowKey, widget->GetNativeWindow()->SetProperty(aura::client::kConstrainedWindowKey,
true); true);
if (views::DialogDelegate::UseNewStyle()) {
views::corewm::SetWindowVisibilityAnimationType(
widget->GetNativeWindow(),
views::corewm::WINDOW_VISIBILITY_ANIMATION_TYPE_ROTATE);
}
#endif #endif
#if defined(USE_ASH) #if defined(USE_ASH)
......
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