Uncomment SemanticsFlag.isMultiline in enums (flutter/engine#32440)

Uncomments the Java Flag.IS_MULTILINE and C++ SemanticsFlag.kIsMultiline
enum values. While these values aren't used in the Android or iOS
embeddings, in practice we maintain the same set of enum values across
all embeddings so as to match the public API defined in dart:ui, found
in lib/ui/semantics/semantics.dart.

This also helps with automated checking that all enums across all
languages are consistent.

This will be added to the embedder API in
https://github.com/flutter/engine/pull/32332.

Issue: https://github.com/flutter/flutter/issues/101217
This commit is contained in:
Chris Bracken
2022-04-06 09:59:48 -07:00
committed by GitHub
parent 3da07b7cfa
commit 6b7a734450
2 changed files with 2 additions and 4 deletions

View File

@@ -81,8 +81,7 @@ enum class SemanticsFlags : int32_t {
kHasToggledState = 1 << 16,
kIsToggled = 1 << 17,
kHasImplicitScrolling = 1 << 18,
// The Dart API defines the following flag but it isn't used in iOS.
// kIsMultiline = 1 << 19,
kIsMultiline = 1 << 19,
kIsReadOnly = 1 << 20,
kIsFocusable = 1 << 21,
kIsLink = 1 << 22,

View File

@@ -2045,8 +2045,7 @@ public class AccessibilityBridge extends AccessibilityNodeProvider {
HAS_TOGGLED_STATE(1 << 16),
IS_TOGGLED(1 << 17),
HAS_IMPLICIT_SCROLLING(1 << 18),
// The Dart API defines the following flag but it isn't used in Android.
// IS_MULTILINE(1 << 19);
IS_MULTILINE(1 << 19),
IS_READ_ONLY(1 << 20),
IS_FOCUSABLE(1 << 21),
IS_LINK(1 << 22),