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

Unified Diff: mash/wm/property_util.cc

Issue 1953183002: Support the ignored_by_shelf flag for Mus windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix deps and limit mus to MOJO_SHELL_CLIENT. 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/public/interfaces/user_window_controller.mojom » ('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 e8355fd57e4a665406dcb3d3cc9944a7a1a06937..13c29f051dbdd720fe720a450307529932cc616e 100644
--- a/mash/wm/property_util.cc
+++ b/mash/wm/property_util.cc
@@ -162,5 +162,12 @@ base::string16 GetAppID(const mus::Window* window) {
mus::mojom::WindowManager::kAppID_Property);
}
+bool GetWindowIgnoredByShelf(mus::Window* window) {
+ return window->HasSharedProperty(
+ mus::mojom::WindowManager::kWindowIgnoredByShelf_Property) &&
+ window->GetSharedProperty<bool>(
+ mus::mojom::WindowManager::kWindowIgnoredByShelf_Property);
+}
+
} // namespace wm
} // namespace mash
« no previous file with comments | « mash/wm/property_util.h ('k') | mash/wm/public/interfaces/user_window_controller.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698