Chromium Code Reviews| Index: ash/mus/mus_property_mirror_ash.h |
| diff --git a/ash/mus/mus_property_mirror_ash.h b/ash/mus/mus_property_mirror_ash.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a2c7c1620b89923c1d8235d4c6fe4d7b5918fed8 |
| --- /dev/null |
| +++ b/ash/mus/mus_property_mirror_ash.h |
| @@ -0,0 +1,33 @@ |
| +// 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_MUS_MUS_PROPERTY_MIRROR_H_ |
| +#define ASH_MUS_MUS_PROPERTY_MIRROR_H_ |
| + |
| +#include "ash/ash_export.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 ASH_EXPORT MusPropertyMirrorAsh : public views::MusPropertyMirror { |
|
sky
2017/01/31 23:25:09
This isn't actually used in ash, is it? Rather it'
msw
2017/02/01 01:25:00
It took some doing, and reminded me what a mess as
|
| + 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_MUS_MUS_PROPERTY_MIRROR_H_ |