Skip to content
Snippets Groups Projects
Commit c3b3b650 authored by Robert Lord's avatar Robert Lord Committed by CQ bot account: commit-bot@chromium.org
Browse files

[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
parent 5fee181b
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment