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

Unified Diff: ash/wm/window_util.h

Issue 14273008: Add ash-enable-sticky-edges for 'sticky' instead of 'snap' behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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.h
diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h
index cf7b0e76093b2ba2749a6de8fa5f6986dade0473..536b495141f9b4329736c8f6d63895abafe686d7 100644
--- a/ash/wm/window_util.h
+++ b/ash/wm/window_util.h
@@ -130,6 +130,9 @@ ASH_EXPORT void AdjustBoundsToEnsureWindowVisibility(
ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window,
const ui::Event& event);
+// Returns true if a window should stick to an edge.
+ASH_EXPORT bool ShouldStickToEdge(int distance_from_edge);
flackr 2013/04/16 00:32:14 Currently, this is only used by workspace_window_r
stevenjb 2013/04/16 20:08:20 That was my thought based on your suggestion, but
+
} // namespace wm
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698