Add hints for accessibility in Piet.
PiperOrigin-RevId: 293204715
Change-Id: I17129345a007c0dcb0398aecd39bcf370ba237df
diff --git a/src/main/proto/search/now/ui/piet/accessibility.proto b/src/main/proto/search/now/ui/piet/accessibility.proto
index 33c54ad..fdc6a2e 100644
--- a/src/main/proto/search/now/ui/piet/accessibility.proto
+++ b/src/main/proto/search/now/ui/piet/accessibility.proto
@@ -53,6 +53,19 @@
// ID coming from a template.
ParameterizedTextBindingRef accessibility_id_binding = 5;
}
+
+ oneof context_data {
+ // A string that may be spoken by the system that describes the result of an
+ // action. For example, "Opens the article." This provides additional
+ // context over the description.
+
+ // NOTE: Only supported by iOS and maps to accessibilityHint on an
+ // accessible element.
+ ParameterizedText context = 6;
+
+ // In case this is coming from a template.
+ ParameterizedTextBindingRef context_binding = 7;
+ }
}
// Semantic roles played by a UI element related to accessibility.