Chromium Code Reviews| 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 frame that mash constructs in order to render the | |
|
sky
2017/01/27 23:46:22
The description of root_window is mildly confusing
msw
2017/01/28 00:09:16
Done.
| |
| 24 // non-client frame decorations (see ash::mus::NonClientFrameController). | |
| 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 |