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

Unified Diff: ash/mus/property_util.cc

Issue 2357143004: mash: Support ShelfWindowWatcher via ShelfItem properties. (Closed)
Patch Set: Address comments. Created 4 years, 3 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 | « ash/mus/property_util.h ('k') | chrome/browser/ui/ash/launcher/browser_status_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/property_util.cc
diff --git a/ash/mus/property_util.cc b/ash/mus/property_util.cc
index 13c3359408c9e76c8b77a9f9a771dd8fa1a3ceb2..801a44071d2043fc5e193de042b1733178e1dfb0 100644
--- a/ash/mus/property_util.cc
+++ b/ash/mus/property_util.cc
@@ -175,6 +175,11 @@ mojom::AshWindowType GetAshWindowType(const ui::Window* window) {
window->GetSharedProperty<int32_t>(mojom::kAshWindowType_Property));
}
+void SetWindowTitle(ui::Window* window, base::string16 title) {
+ window->SetSharedProperty<base::string16>(
+ ui::mojom::WindowManager::kWindowTitle_Property, title);
+}
+
base::string16 GetWindowTitle(const ui::Window* window) {
if (!window->HasSharedProperty(
ui::mojom::WindowManager::kWindowTitle_Property)) {
« no previous file with comments | « ash/mus/property_util.h ('k') | chrome/browser/ui/ash/launcher/browser_status_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698