| commit | 2632a2b51d3281ecbde13bc78b8dba2bca33eec8 | [log] [tgz] |
|---|---|---|
| author | Andy Phan <andyphan@chromium.org> | Fri Oct 31 00:20:46 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 31 00:20:46 2025 |
| tree | 314ba2fa5baf2d1d5763657944a1baeaf1361839 | |
| parent | 58caf2359c5bb3a0489edd27d0d11871dbd1da64 [diff] |
[PDF Ink Signatures] Extend selection in FinishTextHighlight() Sometimes, the mouseup/touchend event may have a different position than the most recent mousemove/touchmove event. Handle this possibility by processing the mouseup/touchend event as if it were a mousemove/touchmove event first, then proceed. In other words, call PdfInkModule::ContinueTextHighlight() in PdfInkModule::FinishTextHighlight() if the last input position is different. This makes the behavior similar to drawing, and also accounts for any "missed" events. To implement, reuse DrawingStrokeState::EventDetails in TextHighlightState. The time field will be unused, but the tool type will be used in https://crrev.com/c/7103575. This CL is based off https://crrev.com/1332438. Bug: 456445098 Change-Id: I3dbc48c096e443838da4ae9e9befc2a2d78a06d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7103574 Commit-Queue: Andy Phan <andyphan@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1538304}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.