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

Unified Diff: ui/aura/mus/property_utils.h

Issue 2514243002: Propagates window type properties during aura-mus window creation (Closed)
Patch Set: merge Created 4 years, 1 month 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 | « ui/aura/client/aura_constants.cc ('k') | ui/aura/mus/property_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/property_utils.h
diff --git a/ui/aura/mus/property_utils.h b/ui/aura/mus/property_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..0106d966735084e6ae01640b9ca591f009853e61
--- /dev/null
+++ b/ui/aura/mus/property_utils.h
@@ -0,0 +1,30 @@
+// 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 UI_AURA_MUS_PROPERTY_UTILS_H_
+#define UI_AURA_MUS_PROPERTY_UTILS_H_
+
+#include <stdint.h>
+
+#include "ui/aura/aura_export.h"
+
+namespace ui {
+namespace mojom {
+enum class WindowType;
+}
+}
+
+namespace aura {
+
+class Window;
+
+// Configures the two window type properties on |window|. Specifically this
+// sets the property client::kWindowTypeKey as well as calling SetType().
+// This *must* be called before Init().
+AURA_EXPORT void SetWindowType(Window* window,
+ ui::mojom::WindowType window_type);
+
+} // namespace aura
+
+#endif // UI_AURA_MUS_PROPERTY_UTILS_H_
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/aura/mus/property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698