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

Unified Diff: ui/views/mus/mus_property_mirror.h

Issue 2655513002: mash: Relay some Chrome aura window properties to Ash. (Closed)
Patch Set: Address comments. 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
« ui/views/mus/desktop_window_tree_host_mus.cc ('K') | « ui/views/mus/mus_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/mus_property_mirror.h
diff --git a/ui/views/mus/mus_property_mirror.h b/ui/views/mus/mus_property_mirror.h
new file mode 100644
index 0000000000000000000000000000000000000000..7b0680f3b59c65f1bba4a5970f7a6a2b2a30a2bd
--- /dev/null
+++ b/ui/views/mus/mus_property_mirror.h
@@ -0,0 +1,34 @@
+// 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 UI_VIEWS_MUS_MUS_PROPERTY_MIRROR_H_
+#define UI_VIEWS_MUS_MUS_PROPERTY_MIRROR_H_
+
+#include "ui/views/mus/mus_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace views {
+
+// Facilitates copying mus client window properties to their mash frame windows.
+class VIEWS_MUS_EXPORT MusPropertyMirror {
+ public:
+ virtual ~MusPropertyMirror() {}
+
+ // Called when a property with the given |key| has changed for |window|.
+ // |window| is what mus clients get when calling |widget->GetNativeWindow()|.
+ // |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.
+ // non-client frame decorations (see ash::mus::NonClientFrameController).
+ // Various ash features rely on property values of mus clients' root windows.
+ virtual void MirrorPropertyFromWidgetWindowToRootWindow(
+ aura::Window* window,
+ aura::Window* root_window,
+ const void* key) = 0;
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_MUS_MUS_PROPERTY_MIRROR_H_
« ui/views/mus/desktop_window_tree_host_mus.cc ('K') | « ui/views/mus/mus_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698