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

Unified Diff: ash/mus/property_util.cc

Issue 2042903002: Support app window draggable areas in mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 6 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/mus/property_util.cc
diff --git a/ash/mus/property_util.cc b/ash/mus/property_util.cc
index 3daf0de42c5bea90ac2b409bcaf8f18e8c70ebcb..df6295e11e371c771307a6a8e0bcf0cd6f50874c 100644
--- a/ash/mus/property_util.cc
+++ b/ash/mus/property_util.cc
@@ -235,5 +235,12 @@ bool IsAlwaysOnTop(::mus::Window* window) {
::mus::mojom::WindowManager::kAlwaysOnTop_Property);
}
+bool ShouldRemoveStandardFrame(::mus::Window* window) {
+ return window->HasSharedProperty(
+ ::mus::mojom::WindowManager::kRemoveStandardFrame_Property) &&
+ window->GetSharedProperty<bool>(
+ ::mus::mojom::WindowManager::kRemoveStandardFrame_Property);
+}
+
} // namespace mus
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698