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

Unified Diff: ui/views/test/native_widget_factory_aura_mus.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/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/test/native_widget_factory_aura_mus.cc
diff --git a/ui/views/test/native_widget_factory_aura_mus.cc b/ui/views/test/native_widget_factory_aura_mus.cc
index 292e7a939e1e19f12b15f2ba9f8de7fb52dc4e2b..8cde112d7838999d0bf1c9a6d68c2cf6baa6d50f 100644
--- a/ui/views/test/native_widget_factory_aura_mus.cc
+++ b/ui/views/test/native_widget_factory_aura_mus.cc
@@ -5,6 +5,7 @@
#include "ui/views/test/native_widget_factory.h"
#include "base/memory/ptr_util.h"
+#include "ui/aura/mus/window_tree_host_mus_init_params.h"
#include "ui/views/mus/desktop_window_tree_host_mus.h"
#include "ui/views/mus/mus_client.h"
#include "ui/views/test/test_platform_native_widget.h"
@@ -30,10 +31,13 @@ NativeWidget* CreatePlatformNativeWidgetImplAuraMus(
widget, type == kStubCapture, destroyed);
std::map<std::string, std::vector<uint8_t>> mus_properties =
MusClient::Get()->ConfigurePropertiesFromParams(init_params);
+ aura::WindowTreeHostMusInitParams window_tree_host_init_params =
+ aura::CreateInitParamsForTopLevel(MusClient::Get()->window_tree_client(),
+ std::move(mus_properties));
desktop_native_widget_aura->SetDesktopWindowTreeHost(
base::MakeUnique<DesktopWindowTreeHostMus>(
- widget, desktop_native_widget_aura, cc::FrameSinkId(),
- &mus_properties));
+ std::move(window_tree_host_init_params), widget,
+ desktop_native_widget_aura));
return desktop_native_widget_aura;
}
« no previous file with comments | « ui/views/mus/mus_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698