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

Unified Diff: ui/aura/mus/window_tree_host_mus.cc

Issue 2539263005: Makes WindowTreeHostMus supply properties directly to window creation (Closed)
Patch Set: comment Created 4 years 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 | « ui/aura/mus/window_tree_host_mus.h ('k') | ui/aura/mus/window_tree_host_mus_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_host_mus.cc
diff --git a/ui/aura/mus/window_tree_host_mus.cc b/ui/aura/mus/window_tree_host_mus.cc
index 3fb232b8d427e9082a632cbb360d637f7464d81c..ba6e05f5e07346442d76eb37c7b5b6803ee46d67 100644
--- a/ui/aura/mus/window_tree_host_mus.cc
+++ b/ui/aura/mus/window_tree_host_mus.cc
@@ -84,12 +84,16 @@ WindowTreeHostMus::WindowTreeHostMus(
compositor()->SetVisible(false);
}
+// Pass |properties| to CreateWindowPortForTopLevel() so that |properties|
+// are passed to the server *and* pass |properties| to the WindowTreeHostMus
+// constructor (above) which applies the properties to the Window. Some of the
+// properties may be server specific and not applied to the Window.
WindowTreeHostMus::WindowTreeHostMus(
WindowTreeClient* window_tree_client,
const std::map<std::string, std::vector<uint8_t>>* properties)
: WindowTreeHostMus(
static_cast<WindowTreeHostMusDelegate*>(window_tree_client)
- ->CreateWindowPortForTopLevel(),
+ ->CreateWindowPortForTopLevel(properties),
window_tree_client,
display::Screen::GetScreen()->GetPrimaryDisplay().id(),
properties) {}
« no previous file with comments | « ui/aura/mus/window_tree_host_mus.h ('k') | ui/aura/mus/window_tree_host_mus_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698