Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2358)

Unified Diff: chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc

Issue 13932019: Enable rotate style visibility animation for new style web contents modal dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use DialogDelegate::UseNewStyle Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc
diff --git a/chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc b/chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc
index 1821634680df3c972523329f1d02c8891e7fa604..04b699c1425df912acff5a8c59deb90b6ab0bb36 100644
--- a/chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc
+++ b/chrome/browser/ui/views/web_contents_modal_dialog_manager_views.cc
@@ -11,6 +11,7 @@
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/views/widget/widget_observer.h"
+#include "ui/views/window/dialog_delegate.h"
#if defined(USE_AURA)
#include "ui/aura/client/aura_constants.h"
@@ -56,6 +57,12 @@ class NativeWebContentsModalDialogManagerViews
// TODO(wittman): remove once the new visual style is complete
widget->GetNativeWindow()->SetProperty(aura::client::kConstrainedWindowKey,
true);
+
+ if (views::DialogDelegate::UseNewStyle()) {
+ views::corewm::SetWindowVisibilityAnimationType(
+ widget->GetNativeWindow(),
+ views::corewm::WINDOW_VISIBILITY_ANIMATION_TYPE_ROTATE);
+ }
#endif
#if defined(USE_ASH)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698