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

Unified Diff: ash/wm/window_state.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: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index 4bc1484f9b81e794f389f5daa5aa4ca381247462..ba7043362725587b8e26756e4ff8e7e4117de366 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -19,6 +19,7 @@
#include "ui/aura/window.h"
#include "ui/aura/window_delegate.h"
#include "ui/gfx/display.h"
+#include "ui/views/corewm/transient_window_manager.h"
#include "ui/views/corewm/window_util.h"
namespace ash {
@@ -138,7 +139,7 @@ bool WindowState::CanActivate() const {
bool WindowState::CanSnap() const {
if (!CanResize() ||
window_->type() == aura::client::WINDOW_TYPE_PANEL ||
- window_->transient_parent())
+ views::corewm::GetTransientParent(window_))
return false;
// If a window has a maximum size defined, snapping may make it too big.
return window_->delegate() ? window_->delegate()->GetMaximumSize().IsEmpty() :

Powered by Google App Engine
This is Rietveld 408576698