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

Unified Diff: mash/wm/property_util.cc

Issue 1994763002: Wires up WorkspaceLayoutManager in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: data deps Created 4 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
« no previous file with comments | « mash/wm/property_util.h ('k') | mash/wm/root_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/property_util.cc
diff --git a/mash/wm/property_util.cc b/mash/wm/property_util.cc
index d708a4f56445ecb4a77b737a8ab1516e0b4b306b..bda0c029914cfc90ab94b0501be3f194da574fd4 100644
--- a/mash/wm/property_util.cc
+++ b/mash/wm/property_util.cc
@@ -204,5 +204,17 @@ bool GetWindowIgnoredByShelf(mus::Window* window) {
mus::mojom::WindowManager::kWindowIgnoredByShelf_Property);
}
+void SetAlwaysOnTop(mus::Window* window, bool value) {
+ window->SetSharedProperty<bool>(
+ mus::mojom::WindowManager::kAlwaysOnTop_Property, value);
+}
+
+bool IsAlwaysOnTop(mus::Window* window) {
+ return window->HasSharedProperty(
+ mus::mojom::WindowManager::kAlwaysOnTop_Property) &&
+ window->GetSharedProperty<bool>(
+ mus::mojom::WindowManager::kAlwaysOnTop_Property);
+}
+
} // namespace wm
} // namespace mash
« no previous file with comments | « mash/wm/property_util.h ('k') | mash/wm/root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698