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
Removes the `Index` suffix from kMoveCursorForwardByWord and
kMoveCursorBackwardByWord values in the SemanticsAction enum. These were
erroneously copied as-is from the private class members in the dart:ui
implementation in lib/ui/semantics/semantics.dart where the class
members refer to the enum index here. This removes the trailing `Index`
for consistency with the other enum members here.
This is also useful in the context of automated testing for API
consistency between these enums, the ones in dart:ui (native and web
implementations) and the embedder API.
Issue: https://github.com/flutter/flutter/issues/101217
Classes that model enums in dart:ui typically name fields modelling the
enum values as `_kFooIndex`. This associated value matches the enum
value from embedder.h.
In https://github.com/flutter/engine/pull/32408 we add a test that
verifies that dart:ui classes model the same set of values in the native
implementation, the web_ui implementation, and the embedder API. Testing
this is much simpler if we use consistent naming for all enum values.
Issue: https://github.com/flutter/engine/pull/32408
* Implement trackpad gestures in engine
* Remove the platform implementations
* Add new device type for trackpad
* Add back the necessary changes for Android
* Address feedback
* Fix doc typos
This change adds additional Tonic templates for automatically generating bindings for Dart FFI, as well as serialisation of the bindings.
- Adds parallel FfiDispather templates to the existing DartDispatcher used for (old) native bindings.
- Adds serialisation of the bindings to enable automatic conversion and verification.
- Extends existing DartConverters with conversions to and from the FFI transport types.
- Adds new test (ffi_native_unittest.cc) for the above.
This will allow us to replace the existing native functions in e.g. dart:ui with new Dart FFI native functions.
This extracts the API samples from ui/lib/text.dart so that they may be moved to flutter/flutter's examples/api/lib/ui directory.
No tests, comment only change.