mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge pull request #2337 from Hixie/semantics-mojom
Make the arrays nullable in the Semantics mojom.
This commit is contained in:
commit
b70508cbd0
@ -7,10 +7,12 @@ module semantics;
|
||||
|
||||
struct SemanticsNode {
|
||||
uint32 id;
|
||||
|
||||
// A null field means "unchanged since last time".
|
||||
SemanticFlags? flags;
|
||||
SemanticStrings? strings;
|
||||
SemanticGeometry? geometry;
|
||||
array<SemanticsNode> children;
|
||||
array<SemanticsNode>? children;
|
||||
};
|
||||
|
||||
struct SemanticFlags {
|
||||
@ -39,7 +41,7 @@ struct SemanticGeometry {
|
||||
// a 4x4 matrix, with values in column-major order. The array must
|
||||
// have exactly 16 values.
|
||||
// This can be left unset to imply the identity matrix.
|
||||
array<float> transform;
|
||||
array<float, 16>? transform;
|
||||
|
||||
// The position and size of the potentially interactive rectangle in the
|
||||
// SemanticsNode's coordinate space.
|
||||
@ -52,7 +54,6 @@ struct SemanticGeometry {
|
||||
float height;
|
||||
};
|
||||
|
||||
[ServiceName="semantics::SemanticsClient"]
|
||||
interface SemanticsListener {
|
||||
// The OS side, invoked from the app.
|
||||
UpdateSemanticsTree(array<SemanticsNode> nodes);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user