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

Unified Diff: ash/wm/drag_window_resizer.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/drag_window_resizer.cc
diff --git a/ash/wm/drag_window_resizer.cc b/ash/wm/drag_window_resizer.cc
index 000d1198419d9d40656f89f97839ebf1bb8813e3..15422a0d4b5bd84a67203e2cdc09f7fa1a56a202 100644
--- a/ash/wm/drag_window_resizer.cc
+++ b/ash/wm/drag_window_resizer.cc
@@ -22,6 +22,7 @@
#include "ui/base/hit_test.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/screen.h"
+#include "ui/views/corewm/transient_window_manager.h"
namespace ash {
namespace internal {
@@ -212,7 +213,7 @@ void DragWindowResizer::UpdateDragWindow(const gfx::Rect& bounds,
bool DragWindowResizer::ShouldAllowMouseWarp() {
return (details_.window_component == HTCAPTION) &&
- !GetTarget()->transient_parent() &&
+ !views::corewm::GetTransientParent(GetTarget()) &&
(GetTarget()->type() == aura::client::WINDOW_TYPE_NORMAL ||
GetTarget()->type() == aura::client::WINDOW_TYPE_PANEL);
}
@@ -225,7 +226,7 @@ TrayUser* DragWindowResizer::GetTrayUserItemAtPoint(
// Check that this is a drag move operation from a suitable window.
if (details_.window_component != HTCAPTION ||
- GetTarget()->transient_parent() ||
+ views::corewm::GetTransientParent(GetTarget()) ||
(GetTarget()->type() != aura::client::WINDOW_TYPE_NORMAL &&
GetTarget()->type() != aura::client::WINDOW_TYPE_PANEL &&
GetTarget()->type() != aura::client::WINDOW_TYPE_POPUP))

Powered by Google App Engine
This is Rietveld 408576698