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

Unified Diff: ash/wm/drag_window_resizer.cc

Issue 1157843009: Added wm::IsWindowUserPositionable(...) method in window_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added WindowState::IsUserPositionable() method. Created 5 years, 6 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: ash/wm/drag_window_resizer.cc
diff --git a/ash/wm/drag_window_resizer.cc b/ash/wm/drag_window_resizer.cc
index 948137e709fb48303476d2690d1296b9c3cc3cac..f6a714c28b0cd93267fe9c2c0661cbb84b08ef35 100644
--- a/ash/wm/drag_window_resizer.cc
+++ b/ash/wm/drag_window_resizer.cc
@@ -216,10 +216,9 @@ void DragWindowResizer::UpdateDragWindow(const gfx::Rect& bounds,
}
bool DragWindowResizer::ShouldAllowMouseWarp() {
- return (details().window_component == HTCAPTION) &&
- !::wm::GetTransientParent(GetTarget()) &&
- (GetTarget()->type() == ui::wm::WINDOW_TYPE_NORMAL ||
- GetTarget()->type() == ui::wm::WINDOW_TYPE_PANEL);
+ return details().window_component == HTCAPTION &&
+ !::wm::GetTransientParent(GetTarget()) &&
+ wm::IsWindowUserPositionable(GetTarget());
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698