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

Unified Diff: chrome/browser/ui/ash/property_util.h

Issue 2381183002: mash: Fix shelf window property use in Chrome. (Closed)
Patch Set: Sync and rebase; add 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
Index: chrome/browser/ui/ash/property_util.h
diff --git a/chrome/browser/ui/ash/property_util.h b/chrome/browser/ui/ash/property_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..1bb1cb3ac727f04c3af961d45316961a63bee2a8
--- /dev/null
+++ b/chrome/browser/ui/ash/property_util.h
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ASH_PROPERTY_UTIL_H_
+#define CHROME_BROWSER_UI_ASH_PROPERTY_UTIL_H_
James Cook 2016/10/01 00:16:21 optional: property_util.h is pretty generic. How a
msw 2016/10/03 19:14:23 I'm following the example of ash/mus/property_util
+
+#include "base/strings/string16.h"
+#include "ui/aura/window.h"
+
+// These utility functions set ui::Window properties when running in mash, or
+// they set aura::Window properties when running in classic ash (without mus).
+
+// Sets the |value| of the given window |property|; supports limited properties.
+void SetIntProperty(aura::Window* window,
+ const aura::WindowProperty<int>* property,
+ int value);
+
+// Set the aura::Window title value or the ui::Window title property value.
+void SetTitle(aura::Window* window, const base::string16& value);
+
+#endif // CHROME_BROWSER_UI_ASH_PROPERTY_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698