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

Unified Diff: ui/views/test/test_views_delegate.cc

Issue 115453004: Moves management of transients out of Window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix MRUWindowTracker and MultiProfileMultiBrowserShelfLayoutChromeLauncherControllerTest Created 7 years 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: ui/views/test/test_views_delegate.cc
diff --git a/ui/views/test/test_views_delegate.cc b/ui/views/test/test_views_delegate.cc
index a310121acd06833756718b8a107884c806b55fd3..3132fc594f1e74be0c353fcb8ad15d3151283eaa 100644
--- a/ui/views/test/test_views_delegate.cc
+++ b/ui/views/test/test_views_delegate.cc
@@ -13,16 +13,28 @@
#include "ui/views/widget/native_widget_aura.h"
#endif
+#if defined(USE_AURA)
+#include "ui/views/corewm/transient_window_stacking_client.h"
+#endif
+
namespace views {
TestViewsDelegate::TestViewsDelegate()
: use_transparent_windows_(false) {
DCHECK(!ViewsDelegate::views_delegate);
ViewsDelegate::views_delegate = this;
+#if defined(USE_AURA)
+ // SetWindowStackingClient() takes ownership of TransientWindowStackingClient.
+ aura::client::SetWindowStackingClient(
+ new corewm::TransientWindowStackingClient);
+#endif
}
TestViewsDelegate::~TestViewsDelegate() {
ViewsDelegate::views_delegate = NULL;
+#if defined(USE_AURA)
+ aura::client::SetWindowStackingClient(NULL);
+#endif
}
void TestViewsDelegate::SetUseTransparentWindows(bool transparent) {

Powered by Google App Engine
This is Rietveld 408576698