-
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.
Use cached context caret bounds to show mako UI.
Currently, we try to anchor the mako UI at the caret bounds for the active text input client. This has some issues, e.g. 1. When the mako UI is triggered from a freeform prompt, it is incorrectly anchored at the freeform text input rather than the original text context. 2. If there is no active text input client (e.g. if a native panel chip is focused), the mako UI doesn't show up at all. Fix this by caching the caret bounds when the native panel requests the current editor context, then using these cached caret bounds to show subsequent mako UI. Bug: b:302055240 Change-Id: I1b9ab152b1eefc84c9307c3f6f637b9dc69e915c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4941631 Commit-Queue: Michelle Chen <michellegc@google.com> Reviewed-by: John Palmer <jopalmer@chromium.org> Reviewed-by: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/main@{#1210013}
- Loading branch information
Michelle
authored and
Chromium LUCI CQ
committed
Oct 16, 2023
1 parent
5d78672
commit 4bf37cc
Showing
6 changed files
with
30 additions
and
18 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
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
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