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

Unified Diff: mash/wm/property_util.cc

Issue 1950293003: mash: Add status area container to mash window manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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/container.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..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)) {
« no previous file with comments | « mash/wm/property_util.h ('k') | mash/wm/public/interfaces/container.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698