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

Unified Diff: ash/wm/window_util.cc

Issue 23431009: Windows docking should get triggered by pressing against the screen edge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows docking by pressing against the screen edge (rebase) Created 7 years, 3 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
« no previous file with comments | « ash/wm/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/workspace/snap_sizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index 3f0f23422ce0a5417c6070fc2ea71463e9bbe78d..19028b848dd352686a07f6ca991eeb037a3391ad 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -77,6 +77,8 @@ bool CanResizeWindow(const aura::Window* window) {
bool CanSnapWindow(aura::Window* window) {
if (!CanResizeWindow(window))
return false;
+ if (window->type() == aura::client::WINDOW_TYPE_PANEL)
+ return false;
// If a window has a maximum size defined, snapping may make it too big.
return window->delegate() ? window->delegate()->GetMaximumSize().IsEmpty() :
true;
« no previous file with comments | « ash/wm/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/workspace/snap_sizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698