From 00f2b17f66b8bb39bf979316986ed5404814b623 Mon Sep 17 00:00:00 2001 From: Hixie Date: Tue, 2 Feb 2016 13:36:15 -0800 Subject: [PATCH] Make the arrays nullable in the Semantics mojom. --- sky/services/semantics/semantics.mojom | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sky/services/semantics/semantics.mojom b/sky/services/semantics/semantics.mojom index 7c7906772e3..ae6bf5a6336 100644 --- a/sky/services/semantics/semantics.mojom +++ b/sky/services/semantics/semantics.mojom @@ -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 children; + array? 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 transform; + array? 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 nodes);