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

Unified Diff: ui/views/mus/mus_client.cc

Issue 2823903005: Extracts parameters to WindowTreeHostMus into structure (Closed)
Patch Set: move constructor Created 3 years, 8 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
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | ui/views/test/native_widget_factory_aura_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/mus_client.cc
diff --git a/ui/views/mus/mus_client.cc b/ui/views/mus/mus_client.cc
index b3083c3433e635d7207c8e531d82b924d0b788ee..db9e3944d6f4233ef4101f21409c20b9253a4552 100644
--- a/ui/views/mus/mus_client.cc
+++ b/ui/views/mus/mus_client.cc
@@ -19,6 +19,7 @@
#include "ui/aura/mus/property_converter.h"
#include "ui/aura/mus/window_tree_client.h"
#include "ui/aura/mus/window_tree_host_mus.h"
+#include "ui/aura/mus/window_tree_host_mus_init_params.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/views/mus/aura_init.h"
@@ -273,8 +274,12 @@ std::unique_ptr<DesktopWindowTreeHost> MusClient::CreateDesktopWindowTreeHost(
DesktopNativeWidgetAura* desktop_native_widget_aura) {
std::map<std::string, std::vector<uint8_t>> mus_properties =
ConfigurePropertiesFromParams(init_params);
+ aura::WindowTreeHostMusInitParams window_tree_host_init_params =
+ aura::CreateInitParamsForTopLevel(MusClient::Get()->window_tree_client(),
+ std::move(mus_properties));
return base::MakeUnique<DesktopWindowTreeHostMus>(
- delegate, desktop_native_widget_aura, cc::FrameSinkId(), &mus_properties);
+ std::move(window_tree_host_init_params), delegate,
+ desktop_native_widget_aura);
}
void MusClient::OnEmbed(
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | ui/views/test/native_widget_factory_aura_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698