0

[PDF] Add back documentation for PDFiumPage::GetTextRunInfo()

The comments that describe what this method does got lost in
https://crrev.com/1363484. Add them back.

Change-Id: Idf57e6d99043950fe24446214e8828e7ec0e05a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6231360
Reviewed-by: Ramin Halavati <rhalavati@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1416279}
This commit is contained in:
Lei Zhang
2025-02-05 10:23:39 -08:00
committed by Chromium LUCI CQ
parent eaffa09aae
commit bbcaa4dd3e

@ -85,7 +85,10 @@ class PDFiumPage {
// Resets loaded text and loads it again.
void ReloadTextPage();
// See definition of PDFiumEngine::GetTextRunInfo().
// Given a start char index, find the longest continuous run of text that's
// in a single direction and with the same text style. Return a filled out
// AccessibilityTextRunInfo on success or std::nullopt on failure. e.g. When
// `start_char_index` is out of bounds.
std::optional<AccessibilityTextRunInfo> GetTextRunInfo(int start_char_index);
// Get a unicode character from the page.