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

Unified Diff: components/mus/ws/event_matcher.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/event_matcher.cc
diff --git a/components/mus/ws/event_matcher.cc b/components/mus/ws/event_matcher.cc
index 1ca1aff5b20300567062fbfbb3be4cbde0d3afe1..1dc16524e07645b7cac182da72714cd0d02dfda8 100644
--- a/components/mus/ws/event_matcher.cc
+++ b/components/mus/ws/event_matcher.cc
@@ -5,7 +5,6 @@
#include "components/mus/ws/event_matcher.h"
#include "ui/events/mojo/input_events_type_converters.h"
-#include "ui/gfx/geometry/mojo/geometry_type_converters.h"
namespace mus {
namespace ws {
@@ -70,7 +69,7 @@ EventMatcher::EventMatcher(const mojom::EventMatcher& matcher)
}
if (matcher.pointer_location_matcher) {
fields_to_match_ |= POINTER_LOCATION;
- pointer_region_ = matcher.pointer_location_matcher->region.To<gfx::RectF>();
+ pointer_region_ = matcher.pointer_location_matcher->region;
}
}

Powered by Google App Engine
This is Rietveld 408576698