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

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc

Issue 693523003: MacViews: Put wm window animation calls behind an interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views-clipboard
Patch Set: Created 6 years, 2 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
Index: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
index 16c0d7aa669184d4fdc6578f281b11245c5932a8..3f98b4891feac64154130077d3f3ff6546abf499 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
@@ -33,8 +33,7 @@
#include "ui/views/layout/fill_layout.h"
#include "ui/views/layout/grid_layout.h"
#include "ui/views/layout/layout_constants.h"
-#include "ui/wm/core/window_animations.h"
-
+#include "ui/views/widget/widget.h"
// Helpers --------------------------------------------------------------------
@@ -868,7 +867,7 @@ void ManagePasswordsBubbleView::Observe(
const content::NotificationSource& source,
const content::NotificationDetails& details) {
DCHECK_EQ(type, chrome::NOTIFICATION_FULLSCREEN_CHANGED);
- aura::Window* window = GetWidget()->GetNativeView();
- wm::SetWindowVisibilityAnimationTransition(window, wm::ANIMATE_NONE);
+ GetWidget()->GetVisibilityAnimation()->SetTransition(
+ views::Widget::VisibilityAnimation::ANIMATE_NONE);
CloseBubble();
}

Powered by Google App Engine
This is Rietveld 408576698