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

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
« no previous file with comments | « no previous file | mojo/services/gfx/composition/cpp/formatting.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19659cc0a8eb9eb6db689ebcde8670b012ec7e3c..cab7ce5f5288b073d0c675c9e6134a59f41331d6 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
@@ -374,7 +374,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);
@@ -418,7 +418,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;
}
@@ -433,10 +433,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;
}
}
@@ -444,13 +444,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;
}
}
« no previous file with comments | « no previous file | mojo/services/gfx/composition/cpp/formatting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698