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

Unified Diff: ash/public/cpp/mus_property_mirror_ash.h

Issue 2669633003: mash: Fix MusPropertyMirrorAsh for owned properties; add test. (Closed)
Patch Set: Fix ash shell Created 3 years, 11 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/public/cpp/BUILD.gn ('k') | ash/public/cpp/mus_property_mirror_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/cpp/mus_property_mirror_ash.h
diff --git a/ash/public/cpp/mus_property_mirror_ash.h b/ash/public/cpp/mus_property_mirror_ash.h
new file mode 100644
index 0000000000000000000000000000000000000000..94b1f7c1bac05ee917cab1cb71d9d67e7adbc316
--- /dev/null
+++ b/ash/public/cpp/mus_property_mirror_ash.h
@@ -0,0 +1,32 @@
+// Copyright 2017 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 ASH_PUBLIC_CPP_MUS_PROPERTY_MIRROR_H_
+#define ASH_PUBLIC_CPP_MUS_PROPERTY_MIRROR_H_
+
+#include "base/macros.h"
+#include "ui/views/mus/mus_property_mirror.h"
+
+namespace ash {
+
+// Relays aura content window properties to its root window (the mash frame).
+// Ash relies on various window properties for frame titles, shelf items, etc.
+// These properties are read from the client's root, not child content windows.
+class MusPropertyMirrorAsh : public views::MusPropertyMirror {
+ public:
+ MusPropertyMirrorAsh();
+ ~MusPropertyMirrorAsh() override;
+
+ // MusPropertyMirror:
+ void MirrorPropertyFromWidgetWindowToRootWindow(aura::Window* window,
+ aura::Window* root_window,
+ const void* key) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MusPropertyMirrorAsh);
+};
+
+} // namespace ash
+
+#endif // ASH_PUBLIC_CPP_MUS_PROPERTY_MIRROR_H_
« no previous file with comments | « ash/public/cpp/BUILD.gn ('k') | ash/public/cpp/mus_property_mirror_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698