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

Unified Diff: ash/wm/property_util.cc

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Preserve docked state when launcher auto-hide changes. 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/property_util.cc
diff --git a/ash/wm/property_util.cc b/ash/wm/property_util.cc
index d1240b68154304c65a8b597e9340aca37f0fb64c..984c33ec24697367dd3a8c2d934b5c5080aedcdc 100644
--- a/ash/wm/property_util.cc
+++ b/ash/wm/property_util.cc
@@ -43,6 +43,14 @@ void ClearRestoreBounds(aura::Window* window) {
window->ClearProperty(aura::client::kRestoreBoundsKey);
}
+void SetStuckToEdge(aura::Window* window, int value) {
+ window->SetProperty(internal::kWindowStuckToEdge, value);
+}
+
+int GetStuckToEdge(const aura::Window* window) {
+ return window->GetProperty(internal::kWindowStuckToEdge);
+}
+
void SetTrackedByWorkspace(aura::Window* window, bool value) {
window->SetProperty(internal::kWindowTrackedByWorkspaceKey, value);
}

Powered by Google App Engine
This is Rietveld 408576698