[text] TextInputContext implementation, wrapper for TextField implementation
This is the first of two or three changes that implement TextField for input methods making changes to legacy InputMethodEditorClient text fields. Once this proxy is complete, the next steps will be: - Migrate latin-ime and any other input methods to use this new TextField interface, their edits still proxied to legacy text fields. - Bring up a new default input method for physical keyboards, replacing the functionality previously hard-coded in Ime. - Allow Flutter and other clients to implement a TextField and expose it to this service, connecting to any input methods. - Migrate all legacy text fields to the new TextField API. - Shut down the proxy when no InputMethodEditorClient users remain. In this change: - Added conversion from legacy TextInputState into new TextFieldState - Added functions for creating and accessing TextPoints - ImeService now also serves a discoverable TextInputContext service - Ime now also optionally serves a TextField service for input methods, although it currently replies to all requests with BAD_REQUEST. - Added support for running the standard TextField integration test suite on the TextField proxy implementation in Ime, although since that implementation is still a work in progress, this test is marked as `#[ignore]` for now. Change-Id: Iec302a734c25b6e4daae8d467f9b0545f8361da1
Showing
- garnet/bin/sysmgr/config/services.config 1 addition, 0 deletionsgarnet/bin/sysmgr/config/services.config
- garnet/bin/ui/BUILD.gn 1 addition, 0 deletionsgarnet/bin/ui/BUILD.gn
- garnet/bin/ui/ime/BUILD.gn 3 additions, 2 deletionsgarnet/bin/ui/ime/BUILD.gn
- garnet/bin/ui/ime/src/ime.rs 205 additions, 37 deletionsgarnet/bin/ui/ime/src/ime.rs
- garnet/bin/ui/ime/src/ime_service.rs 83 additions, 10 deletionsgarnet/bin/ui/ime/src/ime_service.rs
- garnet/bin/ui/ime/src/main.rs 90 additions, 1 deletiongarnet/bin/ui/ime/src/main.rs
- garnet/bin/ui/meta/ime_service_unittests.cmx 2 additions, 1 deletiongarnet/bin/ui/meta/ime_service_unittests.cmx
Loading
Please register or sign in to comment