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

Unified Diff: ash/wm/window_util.cc

Issue 23471004: Only support left/right maximizing at 50% width when the --ash-enable-alternate-caption-button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up unittests + varkha@'s suggestions Created 7 years, 4 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/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index c3101c75e8dfe0af7a7d7904aff1047692d1d2a7..323da2bc68483ff3e84ed5f9be518f13ad59ec11 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -75,14 +75,6 @@ bool CanResizeWindow(const aura::Window* window) {
return window->GetProperty(aura::client::kCanResizeKey);
}
-bool CanSnapWindow(aura::Window* window) {
- if (!CanResizeWindow(window))
- return false;
- // If a window has a maximum size defined, snapping may make it too big.
- return window->delegate() ? window->delegate()->GetMaximumSize().IsEmpty() :
- true;
-}
-
bool IsWindowNormal(const aura::Window* window) {
return IsWindowStateNormal(window->GetProperty(aura::client::kShowStateKey));
}

Powered by Google App Engine
This is Rietveld 408576698