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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/hit_tests.mojom.dart

Issue 1774373002: Mozart: Implement hit testing. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-4
Patch Set: Created 4 years, 9 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: mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/hit_tests.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/hit_tests.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/hit_tests.mojom.dart
index 59bcd8b4ae3a8238a80436c28b60ff0318576006..1398a03da4581e2dc7458ce47a3911af161f66be 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/hit_tests.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/hit_tests.mojom.dart
@@ -382,7 +382,7 @@ class NodeHit extends bindings.Struct {
const bindings.StructDataHeader(24, 0)
];
int nodeId = 0;
- geometry_mojom.Point intersection = null;
+ geometry_mojom.Transform transform = null;
NodeHit() : super(kVersions.last.size);
@@ -426,7 +426,7 @@ class NodeHit extends bindings.Struct {
if (mainDataHeader.version >= 0) {
var decoder1 = decoder0.decodePointer(16, false);
- result.intersection = geometry_mojom.Point.decode(decoder1);
+ result.transform = geometry_mojom.Transform.decode(decoder1);
}
return result;
}
@@ -441,10 +441,10 @@ class NodeHit extends bindings.Struct {
rethrow;
}
try {
- encoder0.encodeStruct(intersection, 16, false);
+ encoder0.encodeStruct(transform, 16, false);
} on bindings.MojoCodecError catch(e) {
e.message = "Error encountered while encoding field "
- "intersection of struct NodeHit: $e";
+ "transform of struct NodeHit: $e";
rethrow;
}
}
@@ -452,13 +452,13 @@ class NodeHit extends bindings.Struct {
String toString() {
return "NodeHit("
"nodeId: $nodeId" ", "
- "intersection: $intersection" ")";
+ "transform: $transform" ")";
}
Map toJson() {
Map map = new Map();
map["nodeId"] = nodeId;
- map["intersection"] = intersection;
+ map["transform"] = transform;
return map;
}
}

Powered by Google App Engine
This is Rietveld 408576698