-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inputs: Listen to FakeTextInputMethod's OnFocus in tests.
Right now, to detect when we have focus, we listen to the ui::InputMethodObserver's OnTextInputStateChanged. It is easier to listen to FakeTextInputMethod's OnFocus instead. The lacros browser tests are meant to be tests that test the lacros browser against a fake input method, so it makes sense to listen to the fake input method's focus event. This is to prepare for a follow up CL where we also listen for surrounding text changes from FakeTextInputMethod. Bug: b/238838841 Change-Id: If46fb42a7e71ab183552c7e1de6e26a6e6ceae28 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4199627 Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Reviewed-by: Curtis McMullan <curtismcmullan@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/main@{#1099080}
- Loading branch information
Showing
2 changed files
with
42 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters