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

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: Docking with dock width=0 Created 7 years, 7 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..651094402eb26455a2f2409711d5111efbb8ff8b 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 SetDockEdge(aura::Window* window, DockEdge value) {
+ window->SetProperty(internal::kDockEdge, value);
+}
+
+DockEdge GetDockEdge(const aura::Window* window) {
+ return window->GetProperty(internal::kDockEdge);
+}
+
void SetTrackedByWorkspace(aura::Window* window, bool value) {
window->SetProperty(internal::kWindowTrackedByWorkspaceKey, value);
}

Powered by Google App Engine
This is Rietveld 408576698