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

Unified Diff: components/mus/public/cpp/tests/window_tree_client_impl_private.cc

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: components/mus/public/cpp/tests/window_tree_client_impl_private.cc
diff --git a/components/mus/public/cpp/tests/window_tree_client_impl_private.cc b/components/mus/public/cpp/tests/window_tree_client_impl_private.cc
index 28f6b0ff101afe87268f8698efd8ba77792f890f..bc7704f3203c5fa5c8393b8cac94829e84aba6f1 100644
--- a/components/mus/public/cpp/tests/window_tree_client_impl_private.cc
+++ b/components/mus/public/cpp/tests/window_tree_client_impl_private.cc
@@ -6,7 +6,6 @@
#include "components/mus/public/cpp/lib/window_tree_client_impl.h"
#include "components/mus/public/cpp/window.h"
-#include "mojo/converters/geometry/geometry_type_converters.h"
#include "mojo/converters/input_events/input_events_type_converters.h"
namespace mus {
@@ -28,12 +27,10 @@ void WindowTreeClientImplPrivate::OnEmbed(mojom::WindowTree* window_tree) {
mojom::WindowDataPtr root_data(mojom::WindowData::New());
root_data->parent_id = 0;
root_data->window_id = 1;
- root_data->bounds = mojo::Rect::From(gfx::Rect());
root_data->properties.SetToEmpty();
root_data->visible = true;
root_data->viewport_metrics = mojom::ViewportMetrics::New();
- root_data->viewport_metrics->size_in_pixels =
- mojo::Size::From(gfx::Size(1000, 1000));
+ root_data->viewport_metrics->size_in_pixels.SetSize(1000, 1000);
root_data->viewport_metrics->device_pixel_ratio = 1;
tree_client_impl_->OnEmbedImpl(window_tree, 1, std::move(root_data), 0, true);
}

Powered by Google App Engine
This is Rietveld 408576698