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

Unified Diff: components/mus/ws/test_utils.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: rebase 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/ws/test_utils.cc
diff --git a/components/mus/ws/test_utils.cc b/components/mus/ws/test_utils.cc
index d7a947fd959cfd5b0f1cdf79cb0442a6e8acd186..b0cb1f6264d17122c19ebaa74bdf8b8568d9f69f 100644
--- a/components/mus/ws/test_utils.cc
+++ b/components/mus/ws/test_utils.cc
@@ -13,7 +13,6 @@
#include "components/mus/ws/window_manager_factory_service.h"
#include "services/shell/public/interfaces/connector.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/gfx/geometry/mojo/geometry_type_converters.h"
namespace mus {
namespace ws {
@@ -206,16 +205,16 @@ void TestWindowTreeClient::OnTopLevelCreated(uint32_t change_id,
}
void TestWindowTreeClient::OnWindowBoundsChanged(uint32_t window,
- mojo::RectPtr old_bounds,
- mojo::RectPtr new_bounds) {
+ const gfx::Rect& old_bounds,
+ const gfx::Rect& new_bounds) {
tracker_.OnWindowBoundsChanged(window, std::move(old_bounds),
std::move(new_bounds));
}
void TestWindowTreeClient::OnClientAreaChanged(
uint32_t window_id,
- mojo::InsetsPtr new_client_area,
- mojo::Array<mojo::RectPtr> new_additional_client_areas) {}
+ const gfx::Insets& new_client_area,
+ mojo::Array<gfx::Rect> new_additional_client_areas) {}
void TestWindowTreeClient::OnTransientWindowAdded(
uint32_t window_id,

Powered by Google App Engine
This is Rietveld 408576698