| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_VIEWS_MUS_MUS_PROPERTY_MIRROR_H_ |
| 6 #define UI_VIEWS_MUS_MUS_PROPERTY_MIRROR_H_ |
| 7 |
| 8 #include "ui/views/mus/mus_export.h" |
| 9 |
| 10 namespace aura { |
| 11 class Window; |
| 12 } |
| 13 |
| 14 namespace views { |
| 15 |
| 16 // Facilitates copying mus client window properties to their mash frame windows. |
| 17 class VIEWS_MUS_EXPORT MusPropertyMirror { |
| 18 public: |
| 19 virtual ~MusPropertyMirror() {} |
| 20 |
| 21 // Called when a property with the given |key| has changed for |window|. |
| 22 // |window| is what mus clients get when calling |widget->GetNativeWindow()|. |
| 23 // |root_window| is the top-level window representing the widget that is owned |
| 24 // by the window manager and that the window manager observes for changes. |
| 25 // Various ash features rely on property values of mus clients' root windows. |
| 26 virtual void MirrorPropertyFromWidgetWindowToRootWindow( |
| 27 aura::Window* window, |
| 28 aura::Window* root_window, |
| 29 const void* key) = 0; |
| 30 }; |
| 31 |
| 32 } // namespace views |
| 33 |
| 34 #endif // UI_VIEWS_MUS_MUS_PROPERTY_MIRROR_H_ |
| OLD | NEW |