Index: mash/wm/property_util.cc |
diff --git a/mash/wm/property_util.cc b/mash/wm/property_util.cc |
index e8355fd57e4a665406dcb3d3cc9944a7a1a06937..c0ccdc94cfdd8e8a1e6e59e7f47ec6865397efcf 100644 |
--- a/mash/wm/property_util.cc |
+++ b/mash/wm/property_util.cc |
@@ -129,6 +129,14 @@ mus::mojom::WindowType GetWindowType( |
return mus::mojom::WindowType::POPUP; |
} |
+mojom::AshWindowType GetAshWindowType(const mus::Window* window) { |
+ if (!window->HasSharedProperty(mojom::kAshWindowType_Property)) |
+ return mojom::AshWindowType::COUNT; |
+ |
+ return static_cast<mojom::AshWindowType>( |
+ window->GetSharedProperty<int32_t>(mojom::kAshWindowType_Property)); |
+} |
+ |
base::string16 GetWindowTitle(const mus::Window* window) { |
if (!window->HasSharedProperty( |
mus::mojom::WindowManager::kWindowTitle_Property)) { |